Skip to content

Commit

Permalink
override c++ std
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed Sep 30, 2024
1 parent 599d115 commit be92260
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ find_package(Polymake REQUIRED ${POLYMAKE_MIN_VERSION})
include(CheckCXXCompilerFlag)
include(GNUInstallDirs)

set(CMAKE_CXX_STANDARD 14)
# override c++ compat, the interface doesn't really need c++20 and
# the c++ library in some sys-roots doesn't support full c++20
set_target_properties(JlCxx::cxxwrap_julia PROPERTIES INTERFACE_COMPILE_FEATURES "")
set(CMAKE_CXX_STANDARD 17)

SET( CMAKE_CXX_COMPILER "${Polymake_CXX}")
# this is to allow filtering of the -fopenmp flag when building natively
Expand Down

0 comments on commit be92260

Please sign in to comment.