Do not use "strip" with Clang
This commit is contained in:
@@ -46,11 +46,14 @@ if(Qt5Widgets_FOUND)
|
|||||||
target_link_libraries(${SIMULATOR_TARGET} ${SDL_LIBRARY} Qt5::Core)
|
target_link_libraries(${SIMULATOR_TARGET} ${SDL_LIBRARY} Qt5::Core)
|
||||||
|
|
||||||
# Remove debug symbols on release builds
|
# Remove debug symbols on release builds
|
||||||
if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
|
if(NOT CLANG)
|
||||||
add_custom_command(TARGET ${SIMULATOR_TARGET} POST_BUILD
|
if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
|
||||||
|
add_custom_command(TARGET ${SIMULATOR_TARGET} POST_BUILD
|
||||||
COMMAND ${CMAKE_STRIP} $<TARGET_FILE:${SIMULATOR_TARGET}>)
|
COMMAND ${CMAKE_STRIP} $<TARGET_FILE:${SIMULATOR_TARGET}>)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# Introduced at 2.5 - TODO replace with a code change
|
# Introduced at 2.5 - TODO replace with a code change
|
||||||
# When compiled shared simulators using libopenui and Companion have classes named MainWindow
|
# When compiled shared simulators using libopenui and Companion have classes named MainWindow
|
||||||
# When the simulator is launched from Companion the runtime dynamic linking can result in Companion overiding the simulator
|
# When the simulator is launched from Companion the runtime dynamic linking can result in Companion overiding the simulator
|
||||||
|
|||||||
Reference in New Issue
Block a user