From 2c2df64427e2014a1f49e5fcf4d6110c338a4cbe Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Fri, 29 Aug 2014 00:38:44 +0900 Subject: [PATCH] Fixed C++03 and C++11 conditional tests building problem on cmake. --- test/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ce1aea91..eed53ec6 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -7,7 +7,7 @@ INCLUDE_DIRECTORIES ( ${ZLIB_INCLUDE_DIRS} ) -SET (check_PROGRAMS +LIST (APPEND check_PROGRAMS zone.cpp pack_unpack.cpp pack_unpack_c.cpp @@ -24,10 +24,15 @@ SET (check_PROGRAMS msgpack_tuple.cpp msgpack_test.cpp msgpackc_test.cpp - msgpack_test_cpp11.cpp reference.cpp ) +IF (MSGPACK_CXX11) + LIST (APPEND check_PROGRAMS + msgpack_test_cpp11.cpp + ) +ENDIF () + FOREACH (source_file ${check_PROGRAMS}) GET_FILENAME_COMPONENT (source_file_we ${source_file} NAME_WE) ADD_EXECUTABLE (