Skip to content
Snippets Groups Projects
Commit f437a0ba authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Fix static linking

parent 02afd862
No related branches found
No related tags found
No related merge requests found
Pipeline #269922 passed
...@@ -21,6 +21,11 @@ function(phoenix_base_project programName programVersion programDescritpion prog ...@@ -21,6 +21,11 @@ function(phoenix_base_project programName programVersion programDescritpion prog
set(SELF_TESTS_MODE yes CACHE BOOL "Self test mode") set(SELF_TESTS_MODE yes CACHE BOOL "Self test mode")
message(STATUS "SELF_TESTS_MODE = ${SELF_TESTS_MODE}") message(STATUS "SELF_TESTS_MODE = ${SELF_TESTS_MODE}")
if(PHOENIX_BUILD_TYPE STREQUAL "StaticOnly")
# Let's be honest, I hate this solution
add_link_options(-z muldefs)
endif()
set(PHOENIX_FORCE_PULL_MODULE no CACHE BOOL "Say if the submodule have to be pulled every time or not") set(PHOENIX_FORCE_PULL_MODULE no CACHE BOOL "Say if the submodule have to be pulled every time or not")
if(CMAKE_BUILD_TYPE STREQUAL "Coverage") if(CMAKE_BUILD_TYPE STREQUAL "Coverage")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment