mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-12-03 15:30:21 +01:00
Fix Debug builds with old ninja versions (#478)
This commit is contained in:
parent
aba51886c3
commit
5417e6c820
@ -233,6 +233,8 @@ install( TARGETS ${CLDLL_LIBRARY}
|
||||
GROUP_READ GROUP_EXECUTE
|
||||
WORLD_READ WORLD_EXECUTE )
|
||||
|
||||
add_custom_command(TARGET ${CLDLL_LIBRARY}
|
||||
if(CMAKE_BUILD_TYPE MATCHES "Release")
|
||||
add_custom_command(TARGET ${CLDLL_LIBRARY}
|
||||
POST_BUILD DEPENDS ${CLDLL_LIBRARY}
|
||||
COMMAND $<$<CONFIG:release>:${CMAKE_STRIP}> -s $<TARGET_FILE:${CLDLL_LIBRARY}>)
|
||||
COMMAND ${CMAKE_STRIP} -s $<TARGET_FILE:${CLDLL_LIBRARY}>)
|
||||
endif()
|
||||
|
@ -194,6 +194,8 @@ install( TARGETS ${SVDLL_LIBRARY}
|
||||
GROUP_READ GROUP_EXECUTE
|
||||
WORLD_READ WORLD_EXECUTE)
|
||||
|
||||
add_custom_command(TARGET ${SVDLL_LIBRARY}
|
||||
if(CMAKE_BUILD_TYPE MATCHES "Release")
|
||||
add_custom_command(TARGET ${SVDLL_LIBRARY}
|
||||
POST_BUILD DEPENDS ${SVDLL_LIBRARY}
|
||||
COMMAND $<$<CONFIG:release>:${CMAKE_STRIP}> -s $<TARGET_FILE:${SVDLL_LIBRARY}>)
|
||||
COMMAND ${CMAKE_STRIP} -s $<TARGET_FILE:${SVDLL_LIBRARY}>)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user