File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,8 @@ install( TARGETS ${CLDLL_LIBRARY}
233233 GROUP_READ GROUP_EXECUTE
234234 WORLD_READ WORLD_EXECUTE )
235235
236- add_custom_command (TARGET ${CLDLL_LIBRARY}
236+ if (CMAKE_BUILD_TYPE MATCHES "Release" )
237+ add_custom_command (TARGET ${CLDLL_LIBRARY}
237238 POST_BUILD DEPENDS ${CLDLL_LIBRARY}
238- COMMAND $<$<CONFIG:release>:${CMAKE_STRIP} > -s $<TARGET_FILE:${CLDLL_LIBRARY} >)
239+ COMMAND ${CMAKE_STRIP} -s $<TARGET_FILE:${CLDLL_LIBRARY} >)
240+ endif ()
Original file line number Diff line number Diff line change @@ -194,6 +194,8 @@ install( TARGETS ${SVDLL_LIBRARY}
194194 GROUP_READ GROUP_EXECUTE
195195 WORLD_READ WORLD_EXECUTE)
196196
197- add_custom_command (TARGET ${SVDLL_LIBRARY}
197+ if (CMAKE_BUILD_TYPE MATCHES "Release" )
198+ add_custom_command (TARGET ${SVDLL_LIBRARY}
198199 POST_BUILD DEPENDS ${SVDLL_LIBRARY}
199- COMMAND $<$<CONFIG:release>:${CMAKE_STRIP} > -s $<TARGET_FILE:${SVDLL_LIBRARY} >)
200+ COMMAND ${CMAKE_STRIP} -s $<TARGET_FILE:${SVDLL_LIBRARY} >)
201+ endif ()
You can’t perform that action at this time.
0 commit comments