Skip to content

Commit

Permalink
Move find_package(Boost) next to the logic that configures it
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller committed Jul 28, 2023
1 parent af141e7 commit 14d8dfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ if(NOT DEFINED BOOST_ROOT AND NOT DEFINED ENV{BOOST_ROOT})
endif()
endif()

find_package(Boost 1.72.0 REQUIRED)

if(MPI_ACTIVE)
find_package(MPI)
add_compile_definitions(NGEN_MPI_ACTIVE)
Expand All @@ -86,9 +88,6 @@ if(LSTM_TORCH_LIB_ACTIVE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
endif()

find_package(Boost 1.72.0 REQUIRED)


find_package(SQLite3)
if(SQLite3_FOUND)
set(NGEN_WITH_SQLITE3 ON)
Expand Down

0 comments on commit 14d8dfc

Please sign in to comment.