make gc and gmp static and math dynamic
This commit is contained in:
@@ -52,13 +52,10 @@ find_package(BDWgc REQUIRED)
|
||||
find_package(gmp REQUIRED)
|
||||
|
||||
target_compile_options(argon PRIVATE -O3 -Wall -Wextra -Wno-unused-function -s)
|
||||
if(NOT APPLE)
|
||||
target_link_options(argon PRIVATE -static)
|
||||
endif()
|
||||
|
||||
target_link_libraries(argon PRIVATE
|
||||
BDWgc::BDWgc
|
||||
gmp::gmp
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/external/lib/libgc.a"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/external/lib/libgmp.a"
|
||||
m
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user