diff --git a/CMakeLists.txt b/CMakeLists.txt index c5ce70cfb..8453701c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,6 +119,10 @@ if(NOT ITK_SOURCE_DIR) include(itk-module-init.cmake) endif() +# Propagate cmake options in a header file +configure_file(${RTK_SOURCE_DIR}/rtkConfiguration.h.in + ${RTK_BINARY_DIR}/rtkConfiguration.h) + #========================================================= # If choose to build documentation, then search for Doxygen executables. option(RTK_BUILD_DOXYGEN "Build Doxygen Documentation" OFF) diff --git a/itk-module-init.cmake b/itk-module-init.cmake index 6288695cb..c8b02b359 100644 --- a/itk-module-init.cmake +++ b/itk-module-init.cmake @@ -23,6 +23,3 @@ if(RTK_USE_CUDA) set(RTK_CUDA_PROJECTIONS_SLAB_SIZE "16" CACHE STRING "Number of projections processed simultaneously in CUDA forward and back projections") endif() -# Propagate cmake options in a header file -configure_file(${RTK_SOURCE_DIR}/rtkConfiguration.h.in - ${RTK_BINARY_DIR}/rtkConfiguration.h)