Skip to content

Commit

Permalink
fix issue oxfordcontrol#44 - eigen requires at least c++14 support
Browse files Browse the repository at this point in the history
  • Loading branch information
codeinred committed Jun 6, 2024
1 parent c3a7b1e commit d58b811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Define a list of target names
set(CPP_EXAMPLES
set(CPP_EXAMPLES
example_expcone
example_lp
example_powcone
Expand All @@ -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)
Expand Down

0 comments on commit d58b811

Please sign in to comment.