Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake fix - now check for sp library at top level #28

Merged
merged 2 commits into from
Oct 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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