diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2017-12-17 12:26:26 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2017-12-17 13:03:14 +0000 |
commit | 6159c2be18429e69096645946a2cbb507d49cbc5 (patch) | |
tree | 248726b76001caae8b5a824cfac9f8a9f06057b9 /cmake/modules | |
parent | f3444ed0f9c1d6e48b4b383afdd2b9fca9a8966c (diff) |
CMake: Replace generator expression with variable
Should fix OSX buildbot.
Change-Id: I52abdeab8c547079edc8aec6a0c6e12e928838c6
Reviewed-on: https://code.wireshark.org/review/24873
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/WiresharkPlugin.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/WiresharkPlugin.cmake b/cmake/modules/WiresharkPlugin.cmake index 0d8e5c2c27..6c0e6d37b8 100644 --- a/cmake/modules/WiresharkPlugin.cmake +++ b/cmake/modules/WiresharkPlugin.cmake @@ -22,7 +22,7 @@ macro(SET_MODULE_INFO _plugin _ver_major _ver_minor _ver_micro _ver_extra) set(_plugin_rc_in ${CMAKE_SOURCE_DIR}/plugins/plugin.rc.in) endif() configure_file(${_plugin_rc_in} plugin.rc @ONLY) - set(HAVE_PLUGIN_RC TRUE) + set(PLUGIN_RC_FILE ${CMAKE_CURRENT_BINARY_DIR}/plugin.rc) endif() set(PLUGIN_VERSION "${_ver_major}.${_ver_minor}.${_ver_micro}") @@ -32,7 +32,7 @@ endmacro() macro(ADD_PLUGIN_LIBRARY _plugin _subfolder) add_library(${_plugin} MODULE ${PLUGIN_FILES} - $<$<BOOL:${HAVE_PLUGIN_RC}>:${CMAKE_CURRENT_BINARY_DIR}/plugin.rc> + ${PLUGIN_RC_FILE} ) set_target_properties(${_plugin} PROPERTIES |