aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Poletti <poletti.marco@gmail.com>2020-07-12 00:32:31 -0700
committerMarco Poletti <poletti.marco@gmail.com>2020-07-12 00:32:31 -0700
commitc60370e7a9ff2abcba86e5289a9904213983dfc6 (patch)
tree77d649bcb619d5b004807e00179f26a94c485fb9
parent987716be45d64c81fc5117a72335c437b7e36b5a (diff)
downloadgoogle-fruit-c60370e7a9ff2abcba86e5289a9904213983dfc6.tar.gz
Make the test_headers_copy library a static library.
This fixes CI tests for Visual Studio, where otherwise it would generate a .dll instead of the expected .lib file.
-rw-r--r--tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 479b8aa..095d3db 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -81,7 +81,7 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "^(MSVC)$")
set(FRUIT_TESTONLY_CXXFLAGS "${FRUIT_TESTONLY_CXXFLAGS} /wd4702 /wd4503")
endif()
-add_library(test_headers_copy SHARED test_common.cpp)
+add_library(test_headers_copy STATIC test_common.cpp)
target_link_libraries(test_headers_copy fruit)
# Escape the backslash which is a Windows path separator.