diff options
author | Peter Wu <peter@lekensteyn.nl> | 2017-10-14 20:13:52 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-10-16 04:31:57 +0000 |
commit | d3f636ece0ab60e2b8edc8648fa05e83338b60c6 (patch) | |
tree | 0b87b5a19ac81135e89845b08f2b5d8f64eee458 /epan | |
parent | 282b59a853f95c7bf463b617f8d40949b8f8b3ef (diff) |
cmake: fix CMP0026 deprecation warning in CMake 3.9
Since CMake 3.9, all policies before CMP0036 emit a warning. Fix the
warning by not relying on the old behavior (existence of the LOCATION
property).
Tested with Ninja, the cmake output, rules.ninja and build.ninja output
is identical (minus the deprecation warning).
Change-Id: I058699380b01a9c02d9b98fd485ce6ded427abe3
Reviewed-on: https://code.wireshark.org/review/23915
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/CMakeLists.txt | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/epan/CMakeLists.txt b/epan/CMakeLists.txt index b5d1d2a20b..8f6c2ee975 100644 --- a/epan/CMakeLists.txt +++ b/epan/CMakeLists.txt @@ -331,13 +331,6 @@ set_source_files_properties( COMPILE_FLAGS "${WERROR_COMMON_FLAGS}" ) -# Cannot use $<$<BOOL:${HAVE_LIBLUA}>:$<TARGET_OBJECTS:wslua>> as that breaks -# get_target_property(_libwireshark_location epan LOCATION). -if(HAVE_LIBLUA) - set(wslua_sources $<TARGET_OBJECTS:wslua>) -else() - set(wslua_sources) -endif() add_library(epan ${LINK_MODE_LIB} ${LIBWIRESHARK_FILES} ${GENERATED_FILES} @@ -349,7 +342,7 @@ add_library(epan ${LINK_MODE_LIB} $<TARGET_OBJECTS:dissectors-corba> $<TARGET_OBJECTS:ftypes> $<TARGET_OBJECTS:wmem> - ${wslua_sources} + $<$<BOOL:${HAVE_LIBLUA}>:$<TARGET_OBJECTS:wslua>> ${CMAKE_BINARY_DIR}/image/libwireshark.rc ) |