From 83e16581097b82b6c043ea71e69102946566af33 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 5 May 2014 17:39:01 -0700 Subject: [PATCH] Test compilation without -std=c++11. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 79f0884b..c81796e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,8 @@ endif () if (HAVE_STD_CPP11_FLAG) set_target_properties(format PROPERTIES COMPILE_FLAGS ${CPP11_FLAG}) # Test compilation with default flags. - add_library(testformat format.cc) + file(GLOB src RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} test/*.cc test/*.h) + add_library(testformat format.cc ${src}) endif () add_subdirectory(doc)