Skip to content
Snippets Groups Projects
Commit efba50c8 authored by Marco Z's avatar Marco Z
Browse files

CMAKE: Add SRB2_DEBUG_INSTALL to toggle *.debug in install/package

parent aef9a1b5
Branches
Tags
2 merge requests!992CMAKE additions: SDL Mixer X, *.debug adjustments, CPACK adjustments, CCACHE,!991CMAKE additions: SDL Mixer X, *.debug adjustments, CPACK adjustments, CCACHE
......@@ -295,10 +295,13 @@ if(${SDL2_FOUND})
RUNTIME DESTINATION .
)
if ((${CMAKE_BUILD_TYPE} MATCHES Debug) OR (${CMAKE_BUILD_TYPE} MATCHES RelWithDebInfo))
install(FILES $<TARGET_FILE:SRB2SDL2>.debug
DESTINATION .
OPTIONAL
)
set(SRB2_DEBUG_INSTALL OFF CACHE BOOL "Insert *.debug file into the install directory or package.")
if (${SRB2_DEBUG_INSTALL})
install(FILES $<TARGET_FILE:SRB2SDL2>.debug
DESTINATION .
OPTIONAL
)
endif()
endif()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment