Skip to content

Commit

Permalink
Fixing CI job failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaxmonsky committed Nov 11, 2024
1 parent cfe3921 commit 9b66008
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ option(CCPP_FRAMEWORK_ENABLE_TESTS "Enable building/running tests" OFF)
option(BUILD_SHARED_LIBS "Build a static library" OFF)
set(CCPP_VERBOSITY "0" CACHE STRING "Verbosity level of output (default: 0)")

if(CCPP_FRAMEWORK_ENABLE_TESTS)
FetchContent_Declare(
pFUnit
GIT_REPOSITORY https://github.com/Goddard-Fortran-Ecosystem/pFUnit.git
GIT_TAG 26dadb1157819ea1bd9c355c60ed52f42dd36432 # v4.10.0
)
FetchContent_MakeAvailable(pFUnit)
enable_testing()
endif()

# Use rpaths on MacOSX
set(CMAKE_MACOSX_RPATH 1)

Expand Down Expand Up @@ -81,13 +91,6 @@ endif()
add_subdirectory(src)

if(CCPP_FRAMEWORK_ENABLE_TESTS)
FetchContent_Declare(
pFUnit
GIT_REPOSITORY https://github.com/Goddard-Fortran-Ecosystem/pFUnit.git
GIT_TAG 26dadb1157819ea1bd9c355c60ed52f42dd36432 # v4.10.0
)
FetchContent_MakeAvailable(pFUnit)
enable_testing()
add_subdirectory(test)
endif()

Expand Down

0 comments on commit 9b66008

Please sign in to comment.