diff --git a/CMakeLists.txt b/CMakeLists.txt index d71fce35..b6f29a36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/support/CMakeLists.txt b/support/CMakeLists.txt index 6013035f..1cd6efe5 100644 --- a/support/CMakeLists.txt +++ b/support/CMakeLists.txt @@ -35,18 +35,15 @@ target_include_directories(support INTERFACE $ $) -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)