This commit is contained in:
AlexandreRouma
2021-10-03 18:49:56 +02:00
parent 83fc20cacc
commit 94b7676ca5
2 changed files with 3 additions and 4 deletions

View File

@ -100,9 +100,8 @@ else()
endif ()
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# TODO: Replace with add_compile_options?
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
target_compile_options(sdrpp_core PRIVATE -static)
target_link_options(sdrpp_core PRIVATE -static-libgcc -static-libstdc++)
endif ()
endif ()