2
0
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:
Roman Chistokhodov 2024-10-24 09:53:30 +03:00 committed by GitHub
parent aba51886c3
commit 5417e6c820
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -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()

View File

@ -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()