Skip to content

Commit

Permalink
moved option and find package
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Nov 28, 2024
1 parent 06fae49 commit 59071e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ if(EnGPar_VERSION VERSION_LESS 1.1.0)
message(FATAL_ERROR "EnGPar version >= 1.1.0 required.")
endif()

option(PP_PRINT_ENABLED "PUMIPIC print statements enabled" ON)
find_package(spdlog QUIET)

set(debug_flag)
if (PP_ENABLE_DEBUG_SYMBOLS)
set(debug_flag "-g")
Expand Down
5 changes: 1 addition & 4 deletions support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,15 @@ target_include_directories(support INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/support>
$<INSTALL_INTERFACE:include>)

option(PP_PRINT_ENABLED "PUMIPIC print statements enabled" ON)
if(PP_PRINT_ENABLED)
add_definitions(-DPP_PRINT_ENABLED)
target_compile_definitions(support INTERFACE -DPP_PRINT_ENABLED)
endif()

find_package(spdlog QUIET)
if (spdlog_FOUND)
add_definitions(-DSPDLOG_ENABLED)
target_compile_definitions(support INTERFACE -DSPDLOG_ENABLED)
target_link_libraries(support PUBLIC spdlog::spdlog)
endif()

target_link_libraries(support PUBLIC Kokkos::kokkos)
target_link_libraries(support PUBLIC MPI::MPI_CXX)
if(ENABLE_CABANA)
Expand Down

0 comments on commit 59071e7

Please sign in to comment.