Skip to content

Commit

Permalink
Merge pull request #181 from AlexanderRichert-NOAA/fix_kinds
Browse files Browse the repository at this point in the history
remove hardcoded 'kinds' setting from src/CMakeLists.txt
  • Loading branch information
AlexanderRichert-NOAA authored Jun 15, 2023
2 parents 8837059 + 3ba3e14 commit ad5f6df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ if(BUILD_4 AND BUILD_D)
set(kinds "4" "d")
elseif(BUILD_4 AND NOT BUILD_D)
set(kinds "4")
if(BUILD_TESTING)
set(BUILD_TESTING OFF)
message(WARNING "Disabling build testing for BUILD_4-only case")
endif()
elseif(BUILD_D AND NOT BUILD_4)
set(kinds "d")
else()
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ endif()

# We build a version of the library with 4-byte reals (_4), and one
# with 8-byte reals (_d).
set(kinds "4" "d")
foreach(kind ${kinds})
set(lib_name ${PROJECT_NAME}_${kind})
set(module_dir "${CMAKE_CURRENT_BINARY_DIR}/include_${kind}")
Expand Down

0 comments on commit ad5f6df

Please sign in to comment.