diff --git a/CMakeLists.txt b/CMakeLists.txt index b4bf275c2de..40e915f655e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,13 +213,6 @@ endif () set (CMAKE_Fortran_COMPILER_DIRECTIVE "CPR${CMAKE_Fortran_COMPILER_NAME}" CACHE STRING "Fortran compiler name preprocessor directive") -# configure a header file to pass some of the CMake settings -# to the source code -configure_file ( - "${PROJECT_SOURCE_DIR}/cmake_config.h.in" - "${PROJECT_BINARY_DIR}/config.h" - ) - #============================================================================== # SET CODE COVERAGE COMPILER FLAGS #============================================================================== @@ -426,3 +419,12 @@ configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/src/clib/pio_meta.h.in ${CMAKE_CURRENT_BINARY_DIR}/src/clib/pio_meta.h @ONLY) +# configure a header file to pass some of the CMake settings +# to the source code +configure_file ( + "${PROJECT_SOURCE_DIR}/cmake_config.h.in" + "${PROJECT_BINARY_DIR}/config.h" + ) + + + diff --git a/cmake_config.h.in b/cmake_config.h.in index ac4551f8b26..c641cddfcf6 100644 --- a/cmake_config.h.in +++ b/cmake_config.h.in @@ -33,7 +33,6 @@ #define USE_VARD @USE_VARD@ #cmakedefine HAVE_PAR_FILTERS - #cmakedefine NETCDF_INTEGRATION #endif /* _PIO_CONFIG_ */