File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.14)
2
+
3
+ if (NOT DEFINED PROJECT_NAME )
4
+ set (CPRNC_STANDALONE TRUE )
5
+ endif ()
6
+
2
7
project (cprnc Fortran C)
3
8
include (CheckFunctionExists)
4
9
include (ExternalProject)
@@ -95,9 +100,11 @@ set_property(TARGET cprnc PROPERTY POSITION_INDEPENDENT_CODE ON)
95
100
target_link_libraries (cprnc
96
101
PUBLIC ${NetCDF_Fortran_LIBRARIES} ${NetCDF_C_LIBRARIES} ${NetCDF_LIBRARIES} )
97
102
98
-
99
- enable_testing ()
100
- add_test (NAME run_tests COMMAND run_tests -outdir tmp)
103
+ # We do not want cprnc injecting ctests into parent projects
104
+ if (CPRNC_STANDALONE)
105
+ enable_testing ()
106
+ add_test (NAME run_tests COMMAND run_tests -outdir tmp)
107
+ endif ()
101
108
102
109
#==============================================================================
103
110
# DEFINE THE INSTALL
Original file line number Diff line number Diff line change 1
- character (len=*), parameter :: version="v1.0.4"
1
+ character (len=*), parameter :: version="v1.0.5"
2
+
You can’t perform that action at this time.
0 commit comments