diff --git a/CMakeLists.txt b/CMakeLists.txt index a49e9b3..a9b4f0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,7 +107,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") add_compile_options(-bigobj) else () set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") - set(CMAKE_EXE_LINKER_FLAGS "-rdynamic") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic") endif () if(WIN32) diff --git a/src/unittest/CMakeLists.txt b/src/unittest/CMakeLists.txt index d0f3e9c..32a7537 100644 --- a/src/unittest/CMakeLists.txt +++ b/src/unittest/CMakeLists.txt @@ -13,7 +13,7 @@ set(SOURCES gtest_main.cc test2.cpp ) -set(CMAKE_EXE_LINKER_FLAGS "-rdynamic") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic") set(CMAKE_INSTALL_RPATH ./) add_executable(${PROJECT_NAME} ${SOURCES})