Skip to content

Commit

Permalink
Merge pull request #11 from ESMCI/jgfouca/disable_ctest
Browse files Browse the repository at this point in the history
cprnc should not be injecting its ctests into host projects
  • Loading branch information
jgfouca authored Feb 2, 2024
2 parents 845bb11 + bbbc037 commit e3eaa53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
13 changes: 10 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
cmake_minimum_required (VERSION 3.14)

if (NOT DEFINED PROJECT_NAME)
set(CPRNC_STANDALONE TRUE)
endif()

project (cprnc Fortran C)
include (CheckFunctionExists)
include (ExternalProject)
Expand Down Expand Up @@ -95,9 +100,11 @@ set_property(TARGET cprnc PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries (cprnc
PUBLIC ${NetCDF_Fortran_LIBRARIES} ${NetCDF_C_LIBRARIES} ${NetCDF_LIBRARIES})


enable_testing()
add_test(NAME run_tests COMMAND run_tests -outdir tmp)
# We do not want cprnc injecting ctests into parent projects
if (CPRNC_STANDALONE)
enable_testing()
add_test(NAME run_tests COMMAND run_tests -outdir tmp)
endif()

#==============================================================================
# DEFINE THE INSTALL
Expand Down
3 changes: 2 additions & 1 deletion version.inc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
character(len=*), parameter :: version="v1.0.4"
character(len=*), parameter :: version="v1.0.5"

0 comments on commit e3eaa53

Please sign in to comment.