Skip to content

Commit

Permalink
move FindCyclus farther down after other initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibbelink committed Sep 19, 2024
1 parent 8917a5d commit 60c62ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
SET(CYCAMORE_SOURCE_DIR ${CMAKE_SOURCE_DIR})
# Tell CMake where the modules are
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_INSTALL_PREFIX}/share/cyclus/cmake")
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CYCAMORE_SOURCE_DIR}/cmake)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_INSTALL_PREFIX}/share/cyclus/cmake" ${CYCAMORE_SOURCE_DIR}/cmake)
MESSAGE("--CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}")

# Find cyclus
FIND_PACKAGE(Cyclus REQUIRED)
INCLUDE(CyclusBuildSetup)

cyclus_minimum_cmake_version(MINIMUM_CMAKE_VERSION)
Expand Down Expand Up @@ -61,6 +58,8 @@ IF(NOT CYCLUS_DOC_ONLY)
# Search pkg-config utility first
FIND_PACKAGE(PkgConfig REQUIRED)

# Find cyclus
FIND_PACKAGE(Cyclus REQUIRED)
SET(
CYCAMORE_INCLUDE_DIRS
${CYCAMORE_INCLUDE_DIRS}
Expand Down

0 comments on commit 60c62ba

Please sign in to comment.