Skip to content

Commit

Permalink
Merge pull request #518 from ric-bianchi/fix-macos-build-set-minimum-cpp
Browse files Browse the repository at this point in the history
Set minimum C++ standard needed to compile Coin
  • Loading branch information
VolkerEnderlein authored Aug 30, 2024
2 parents fc53b74 + 0a84aea commit bce8e25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message(FATAL_ERROR "${CMAKE_PROJECT_NAME} requires an out of source build. Please create a separate build directory and run 'cmake <path_to_${CMAKE_PROJECT_NAME}> [options]' from there.")
endif()

# ############################################################################
# Set minimum C++ standard needed to compile the Coin code
# ############################################################################
set( CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard used for the build" )
message( STATUS "Setting C++ standard: '${CMAKE_CXX_STANDARD}', which is the minimum needed to compile Coin.")

# ############################################################################
# Include necessary submodules
# ############################################################################
Expand Down

0 comments on commit bce8e25

Please sign in to comment.