mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 13:40:45 +00:00
CMAKE: Add SRB2_DEBUG_INSTALL to toggle *.debug in install/package
This commit is contained in:
parent
aef9a1b522
commit
efba50c83c
1 changed files with 7 additions and 4 deletions
|
@ -295,10 +295,13 @@ if(${SDL2_FOUND})
|
||||||
RUNTIME DESTINATION .
|
RUNTIME DESTINATION .
|
||||||
)
|
)
|
||||||
if ((${CMAKE_BUILD_TYPE} MATCHES Debug) OR (${CMAKE_BUILD_TYPE} MATCHES RelWithDebInfo))
|
if ((${CMAKE_BUILD_TYPE} MATCHES Debug) OR (${CMAKE_BUILD_TYPE} MATCHES RelWithDebInfo))
|
||||||
install(FILES $<TARGET_FILE:SRB2SDL2>.debug
|
set(SRB2_DEBUG_INSTALL OFF CACHE BOOL "Insert *.debug file into the install directory or package.")
|
||||||
DESTINATION .
|
if (${SRB2_DEBUG_INSTALL})
|
||||||
OPTIONAL
|
install(FILES $<TARGET_FILE:SRB2SDL2>.debug
|
||||||
)
|
DESTINATION .
|
||||||
|
OPTIONAL
|
||||||
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue