cmake: disable debug symbols for openmpt

This commit is contained in:
Eidolon 2022-11-08 19:28:12 -06:00
parent 4037d04994
commit c1023b54ee

View file

@ -492,6 +492,9 @@ if(NOT "${SRB2_CONFIG_SYSTEM_LIBRARIES}")
# -DLIBOPENMPT_BUILD # -DLIBOPENMPT_BUILD
configure_file("openmpt_svn_version.h" "svn_version.h") configure_file("openmpt_svn_version.h" "svn_version.h")
add_library(openmpt "${SRB2_INTERNAL_LIBRARY_TYPE}" ${openmpt_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/svn_version.h) add_library(openmpt "${SRB2_INTERNAL_LIBRARY_TYPE}" ${openmpt_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/svn_version.h)
if("${CMAKE_C_COMPILER_ID}" STREQUAL GNU OR "${CMAKE_C_COMPILER_ID}" STREQUAL Clang OR "${CMAKE_C_COMPILER_ID}" STREQUAL AppleClang)
target_compile_options(openmpt PRIVATE "-g0")
endif()
if("${CMAKE_SYSTEM_NAME}" STREQUAL Windows) if("${CMAKE_SYSTEM_NAME}" STREQUAL Windows)
target_link_libraries(openmpt PRIVATE Rpcrt4) target_link_libraries(openmpt PRIVATE Rpcrt4)
endif() endif()