Enable C++11 for no-windows-h-test

This commit is contained in:
Victor Zverovich 2016-09-28 07:45:28 -07:00
parent c4212f9ec2
commit 6fd6ecc10d

View File

@ -129,6 +129,7 @@ if (FMT_PEDANTIC)
# Test that the library compiles without windows.h.
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
add_library(no-windows-h-test ../fmt/format.cc)
target_compile_options(no-windows-h-test PUBLIC ${CPP11_FLAG})
target_include_directories(no-windows-h-test PRIVATE ${PROJECT_SOURCE_DIR})
target_compile_definitions(no-windows-h-test PRIVATE FMT_USE_WINDOWS_H=0)
endif ()