From 0d7caecdb5466e1a946e11eeb24f3c787aeaadfa Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Mon, 6 Jan 2020 13:04:14 +0900 Subject: [PATCH] Fixed cmake condition. If MSGPACK_CXX17 is ON then build MSGPACK_CXX11 target. --- example/cpp11/CMakeLists.txt | 2 +- test/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/cpp11/CMakeLists.txt b/example/cpp11/CMakeLists.txt index c932a603..eb085ed1 100644 --- a/example/cpp11/CMakeLists.txt +++ b/example/cpp11/CMakeLists.txt @@ -1,4 +1,4 @@ -IF (MSGPACK_CXX11) +IF (MSGPACK_CXX11 OR MSGPACK_CXX17) INCLUDE_DIRECTORIES ( ../include ) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 56c6b7aa..7924930c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -55,7 +55,7 @@ IF (MSGPACK_USE_X3_PARSE) ) ENDIF () -IF (MSGPACK_CXX11) +IF (MSGPACK_CXX11 OR MSGPACK_CXX17) LIST (APPEND check_PROGRAMS iterator_cpp11.cpp msgpack_cpp11.cpp