Skip to content

Commit

Permalink
switching to cpp17 fixed protobuf error
Browse files Browse the repository at this point in the history
  • Loading branch information
hhijazi committed Nov 2, 2023
1 parent 29d52df commit acbccea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set(MACOSX_RPATH 1)

include(FetchContent)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

Expand Down
4 changes: 2 additions & 2 deletions examples/MachineLearning/GravityNN/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/MachineLearning/GravityNN/cmake/CPM.cmake)

include(FetchContent)
CPMAddPackage("gh:CLIUtils/CLI11#v2.3.2")
CPMAddPackage("gh:onnx/onnx#v1.14.0")
CPMAddPackage("gh:onnx/onnx#v1.15.0")

file(GLOB NN_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/MachineLearning/GravityNN/network/*.hpp
Expand Down Expand Up @@ -34,4 +34,4 @@ target_link_libraries(tighten gravity CLI11 onnx)
if (OpenMPI)
include_directories(${MPI_INCLUDE_PATH})
target_link_libraries(tighten ${MPI_LIBRARIES})
endif(OpenMPI)
endif(OpenMPI)

0 comments on commit acbccea

Please sign in to comment.