From 6fd6ecc10d593ec8d4be0fbdadba22de17498c95 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 28 Sep 2016 07:45:28 -0700 Subject: [PATCH] Enable C++11 for no-windows-h-test --- test/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index f657337c..3caeb5b0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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 ()