Skip to content

Commit

Permalink
fixed setting of configure define in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 10, 2020
1 parent b38aaef commit f269769
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 9 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
#==============================================================================
Expand Down Expand Up @@ -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"
)



1 change: 0 additions & 1 deletion cmake_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#define USE_VARD @USE_VARD@

#cmakedefine HAVE_PAR_FILTERS

#cmakedefine NETCDF_INTEGRATION

#endif /* _PIO_CONFIG_ */

0 comments on commit f269769

Please sign in to comment.