diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index 0e71dd13c..37c36399a 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -492,6 +492,9 @@ if(NOT "${SRB2_CONFIG_SYSTEM_LIBRARIES}") # -DLIBOPENMPT_BUILD 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) + 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) target_link_libraries(openmpt PRIVATE Rpcrt4) endif()