Skip to content

Commit

Permalink
Merge pull request #28 from NOAA-EMC/ejh_cmake_fix
Browse files Browse the repository at this point in the history
cmake fix - now check for sp library at top level
  • Loading branch information
kgerheiser authored Oct 5, 2020
2 parents 9473971 + c32cc85 commit 99ce100
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This is the main CMake file for NCEPLIBS-ip.

# Mark Potts, Kyle Gerheiser
cmake_minimum_required(VERSION 3.15)

file(STRINGS "VERSION" pVersion)
Expand Down Expand Up @@ -28,6 +31,9 @@ if(OPENMP)
find_package(OpenMP REQUIRED COMPONENTS Fortran)
endif()

# The NCEPLIBS-sp library is required.
find_package(sp REQUIRED)

add_subdirectory(src)

if (ENABLE_TESTS)
Expand Down
2 changes: 0 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

file(COPY data/ DESTINATION data)

find_package(sp REQUIRED)

add_pfunit_ctest (interp_test
TEST_SOURCES test_mod.pf
LINK_LIBRARIES ip::ip_4 sp::sp_4
Expand Down

0 comments on commit 99ce100

Please sign in to comment.