Skip to content

Commit

Permalink
Only add fckit definitions if HAVE_FCKIT is true (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab authored May 6, 2024
1 parent bca496d commit e4a5467
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ ecbuild_add_option( FEATURE MPI
DESCRIPTION "Support for MPI distributed parallelism"
REQUIRED_PACKAGES "MPI COMPONENTS Fortran" )

ecbuild_find_package( fckit QUIET )
ecbuild_add_option( FEATURE FCKIT
DESCRIPTION "Support for fckit"
REQUIRED_PACKAGES "fckit QUIET" )
CONDITION fckit_FOUND AND fckit_HAVE_ECKIT )

ecbuild_add_option( FEATURE DR_HOOK_MULTI_PRECISION_HANDLES
DESCRIPTION "[DEPRECATED] Support single precision handles for DR_HOOK"
Expand Down
4 changes: 2 additions & 2 deletions src/fiat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

### Assemble list of definitions

if( TARGET fckit )
if( HAVE_FCKIT )
list( APPEND FIAT_DEFINITIONS WITH_FCKIT )
endif()

Expand Down Expand Up @@ -74,7 +74,7 @@ endif()

target_compile_definitions( fiat PRIVATE ${FIAT_DEFINITIONS} )

if( TARGET fckit )
if( HAVE_FCKIT )
target_link_libraries( fiat PRIVATE fckit )
endif()

Expand Down

0 comments on commit e4a5467

Please sign in to comment.