# Celeritas dependency options
set(CELERITAS_USE_CUDA OFF CACHE BOOL "")
set(CELERITAS_USE_ROOT ON CACHE BOOL "")
set(CELERITAS_USE_Geant4 ON CACHE BOOL "")
set(CELERITAS_USE_VecGeom OFF CACHE BOOL "")

# VSCode export compile commands
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "")

# Add all the warnings, and enable color diagnostics when using Ninja
#set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -Werror -fcolor-diagnostics" CACHE STRING "")

# Libraries
string(REPLACE ":" ";" _rpath "$ENV{DYLD_FALLBACK_LIBRARY_PATH}")
set(CMAKE_BUILD_RPATH "${_rpath}" CACHE STRING "")
set(CMAKE_INSTALL_RPATH "${_rpath};$ENV{prefix_dir}/lib" CACHE STRING "")

# Enable color diagnostics when using Ninja
foreach(LANG C CXX Fortran)
  set(CMAKE_${LANG}_FLAGS "${CMAKE_${LANG}_FLAGS} -fcolor-diagnostics"
      CACHE STRING "" FORCE)
endforeach()
