mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-01 22:20:06 +00:00
Set gtest_force_shared_crt, take 2.
This commit is contained in:
parent
a2a8741348
commit
771746bd7e
@ -21,7 +21,10 @@ endif ()
|
|||||||
# pre-compiled copy of Google Test (for example, into /usr/local)?"
|
# pre-compiled copy of Google Test (for example, into /usr/local)?"
|
||||||
# at http://code.google.com/p/googletest/wiki/FAQ for more details.
|
# at http://code.google.com/p/googletest/wiki/FAQ for more details.
|
||||||
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/gtest/CMakeLists.txt)
|
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/gtest/CMakeLists.txt)
|
||||||
set(gtest_force_shared_crt ON)
|
option(
|
||||||
|
gtest_force_shared_crt
|
||||||
|
"Use shared (DLL) run-time lib even when Google Test is built as static lib."
|
||||||
|
ON)
|
||||||
add_subdirectory(gtest)
|
add_subdirectory(gtest)
|
||||||
include_directories(gtest/include)
|
include_directories(gtest/include)
|
||||||
link_directories(${CMAKE_CURRENT_BINARY_DIR}/gtest)
|
link_directories(${CMAKE_CURRENT_BINARY_DIR}/gtest)
|
||||||
|
Loading…
Reference in New Issue
Block a user