mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Use DLL runtime for gtest.
This commit is contained in:
parent
7bde2b3c25
commit
79226fe703
@ -50,8 +50,6 @@ endif ()
|
|||||||
|
|
||||||
add_subdirectory(doc)
|
add_subdirectory(doc)
|
||||||
|
|
||||||
enable_testing()
|
|
||||||
|
|
||||||
add_test(compile-test ${CMAKE_CTEST_COMMAND}
|
add_test(compile-test ${CMAKE_CTEST_COMMAND}
|
||||||
--build-and-test
|
--build-and-test
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/test"
|
"${CMAKE_CURRENT_SOURCE_DIR}/test"
|
||||||
@ -81,6 +79,8 @@ if (HAVE_DUP)
|
|||||||
add_definitions(-DFMT_USE_DUP=1)
|
add_definitions(-DFMT_USE_DUP=1)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
enable_testing()
|
||||||
|
|
||||||
include_directories(.)
|
include_directories(.)
|
||||||
add_executable(format-test test/format-test.cc)
|
add_executable(format-test test/format-test.cc)
|
||||||
target_link_libraries(format-test format gtest)
|
target_link_libraries(format-test format gtest)
|
||||||
|
@ -14,7 +14,7 @@ option(BUILD_SHARED_LIBS "Build shared libraries (DLLs)." OFF)
|
|||||||
option(
|
option(
|
||||||
gtest_force_shared_crt
|
gtest_force_shared_crt
|
||||||
"Use shared (DLL) run-time lib even when Google Test is built as static lib."
|
"Use shared (DLL) run-time lib even when Google Test is built as static lib."
|
||||||
OFF)
|
ON)
|
||||||
|
|
||||||
option(gtest_build_tests "Build all of gtest's own tests." OFF)
|
option(gtest_build_tests "Build all of gtest's own tests." OFF)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user