aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/module.rules.txt
diff options
context:
space:
mode:
authorGravatar Fabio Bas2017-09-13 10:48:31 +0200
committerGravatar Benjamin Staneck2017-09-21 20:38:08 +0200
commit9322d59cd43e8e5d1da878747860e8daf04d4e30 (patch)
tree5e81f6bd69d830b1b45e72b66a430ff32428f035 /cmake/module.rules.txt
parentFix invalid IP integer for DCC RSEND request (#2252) (diff)
downloadKVIrc-9322d59cd43e8e5d1da878747860e8daf04d4e30.tar.gz
KVIrc-9322d59cd43e8e5d1da878747860e8daf04d4e30.tar.bz2
KVIrc-9322d59cd43e8e5d1da878747860e8daf04d4e30.zip
Cmake updates
* Remove the usage of CMP0026’s LOCATION * fix WANT_STRIP option: fix #2306 * remove WANT_UNIVERSAL_BINARY option (obsolete) * fix bundling of Qt libraries on Osx
Diffstat (limited to 'cmake/module.rules.txt')
-rw-r--r--cmake/module.rules.txt15
1 files changed, 13 insertions, 2 deletions
diff --git a/cmake/module.rules.txt b/cmake/module.rules.txt
index 4a705bb37..650a4fa80 100644
--- a/cmake/module.rules.txt
+++ b/cmake/module.rules.txt
@@ -23,8 +23,19 @@ set_target_properties(${kvi_module_name} PROPERTIES LINK_FLAGS "${MODULE_ADDITIO
set_target_properties(${kvi_module_name} PROPERTIES COMPILE_FLAGS "${ADDITIONAL_COMPILE_FLAGS}")
if(WANT_STRIP)
- get_target_property(kvi_module_location ${kvi_module_name} LOCATION)
- install(CODE "EXEC_PROGRAM(${STRIP_EXECUTABLE} ARGS -s \"${kvi_module_location}\")")
+ IF(APPLE)
+ add_custom_command(
+ TARGET ${kvi_module_name}
+ POST_BUILD
+ COMMAND ${STRIP_EXECUTABLE} -x $<TARGET_FILE:${kvi_module_name}>
+ )
+ ELSE()
+ add_custom_command(
+ TARGET ${kvi_module_name}
+ POST_BUILD
+ COMMAND ${STRIP_EXECUTABLE} -s $<TARGET_FILE:${kvi_module_name}>
+ )
+ ENDIF()
endif()
install(TARGETS ${kvi_module_name} LIBRARY DESTINATION "${KVIRC_MOD_PATH}")