fix(CMakeLists): use --export-all option when creating DLL on Windows
This commit is contained in:
parent
3de290db35
commit
5f8b600024
1 changed files with 3 additions and 0 deletions
|
@ -360,6 +360,9 @@ if(MULTI_THREAD AND (NOT ("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")) AND (NOT BOO
|
|||
endif()
|
||||
set(CMAKE_EXE_LINKER_FLAGS_TESTCOV "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
|
||||
add_library(leanstatic ${LEAN_OBJS})
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export-all")
|
||||
endif()
|
||||
add_library(leanshared SHARED ${LEAN_OBJS})
|
||||
target_link_libraries(leanshared ${EXTRA_LIBS})
|
||||
|
||||
|
|
Loading…
Reference in a new issue