From 67e196eac4bf56e78bdcf8952fb574a349cccc5b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 19 Dec 2014 07:39:13 -0800 Subject: [PATCH] Make test libraries static --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 829b0986..e45eabb8 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,5 +1,5 @@ set(TEST_MAIN_SRC test-main.cc gtest-extra.cc gtest-extra.h util.cc) -add_library(test-main ${TEST_MAIN_SRC}) +add_library(test-main STATIC ${TEST_MAIN_SRC}) target_link_libraries(test-main gmock) # Adds a test. @@ -67,7 +67,7 @@ target_link_libraries(header-only-test gmock) # Test that the library can be compiled with exceptions disabled. check_cxx_compiler_flag(-fno-exceptions HAVE_FNO_EXCEPTIONS_FLAG) if (HAVE_FNO_EXCEPTIONS_FLAG) - add_library(noexception-test ../format.cc) + add_library(noexception-test STATIC ../format.cc) set_target_properties(noexception-test PROPERTIES COMPILE_FLAGS -fno-exceptions) endif ()