From d58b811a34694cbc8b818985e6671132374e22cc Mon Sep 17 00:00:00 2001 From: Alecto Irene Perez Date: Thu, 6 Jun 2024 13:33:38 -0400 Subject: [PATCH] fix issue #44 - eigen requires at least c++14 support --- examples/cpp/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt index e3f3bbb..3d67a57 100644 --- a/examples/cpp/CMakeLists.txt +++ b/examples/cpp/CMakeLists.txt @@ -1,5 +1,5 @@ # Define a list of target names -set(CPP_EXAMPLES +set(CPP_EXAMPLES example_expcone example_lp example_powcone @@ -14,7 +14,7 @@ set(CPP_EXAMPLES # Define an executable target for each example foreach(EXAMPLE_NAME ${CPP_EXAMPLES}) add_executable("cpp_${EXAMPLE_NAME}" ${EXAMPLE_NAME}.cpp) - target_compile_features("cpp_${EXAMPLE_NAME}" PRIVATE cxx_std_11) # Use C++11 + target_compile_features("cpp_${EXAMPLE_NAME}" PRIVATE cxx_std_14) # Eigen requires at least c++14 support # Link to clarabel built from the Rust wrapper target_link_libraries("cpp_${EXAMPLE_NAME}" PRIVATE libclarabel_c_shared)