mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
cmake: export all symbols
This commit is contained in:
parent
fe76d7dee7
commit
df40d1dc73
1 changed files with 12 additions and 0 deletions
|
@ -234,6 +234,18 @@ add_library(l3 OBJECT incorrect_source.cpp)
|
||||||
endfunction()
|
endfunction()
|
||||||
forbid_undefined_symbols()
|
forbid_undefined_symbols()
|
||||||
|
|
||||||
|
if (MINGW)
|
||||||
|
function(export_all_symbols)
|
||||||
|
unset(TMP)
|
||||||
|
add_linker_flag_if_supported(-Wl,--export-all-symbols TMP)
|
||||||
|
string(APPEND CMAKE_SHARED_LINKER_FLAGS ${TMP})
|
||||||
|
string(APPEND CMAKE_MODULE_LINKER_FLAGS ${TMP})
|
||||||
|
set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} PARENT_SCOPE)
|
||||||
|
set(CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS} PARENT_SCOPE)
|
||||||
|
endfunction()
|
||||||
|
export_all_symbols()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
|
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
|
||||||
message(STATUS "Setting default build type: ${CMAKE_BUILD_TYPE}")
|
message(STATUS "Setting default build type: ${CMAKE_BUILD_TYPE}")
|
||||||
|
|
Loading…
Reference in a new issue