diff --git a/NPLib/CMakeLists.txt b/NPLib/CMakeLists.txt index f435533a1bce8d5f4fceea8f24806430bddf1287..35bd754647669bc9202985e5c8ec4498f89dbb66 100644 --- a/NPLib/CMakeLists.txt +++ b/NPLib/CMakeLists.txt @@ -49,10 +49,10 @@ elseif(${CMAKE_CXX_FLAGS} MATCHES ".*std=.*0x") set(NOCPPFLAGS false) endif() -string(COMPARE EQUAL "${NOCPP11}" "no" nocpp11) - if(nocpp11) - message(" -> C++11 support disable") - endif() +string(COMPARE EQUAL "${CPP11}" "no" nocpp11) +if(nocpp11) + message(" -> C++11 support disable") +endif() if(NOCPPFLAGS) CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)