mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-04 17:26:42 +00:00
Rollback the last change and set gtest_force_shared_crt instead.
This commit is contained in:
parent
25d61171e8
commit
f4f35cd1af
@ -21,12 +21,13 @@ endif ()
|
||||
# pre-compiled copy of Google Test (for example, into /usr/local)?"
|
||||
# at http://code.google.com/p/googletest/wiki/FAQ for more details.
|
||||
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/gtest/CMakeLists.txt)
|
||||
set(gtest_force_shared_crt ON)
|
||||
add_subdirectory(gtest)
|
||||
include_directories(gtest/include)
|
||||
link_directories(${CMAKE_CURRENT_BINARY_DIR}/gtest)
|
||||
enable_testing()
|
||||
add_executable(format_test format.cc format_test.cc gtest/src/gtest_main.cc)
|
||||
target_link_libraries(format_test gtest)
|
||||
add_executable(format_test format_test.cc gtest/src/gtest_main.cc)
|
||||
target_link_libraries(format_test format gtest)
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
set_target_properties(format_test PROPERTIES COMPILE_FLAGS
|
||||
"-Wall -Wextra -pedantic -Wno-long-long -Wno-variadic-macros")
|
||||
|
Loading…
Reference in New Issue
Block a user