Skip to content

Commit 347df4f

Browse files
committed
cmake variables have been renamed
1 parent 0a954f1 commit 347df4f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ ADD_SUBDIRECTORY(src/cldai)
294294
ADD_SUBDIRECTORY(src/clutils)
295295
ADD_SUBDIRECTORY(include)
296296
ADD_SUBDIRECTORY(data)
297-
IF(ENABLE_TESTING)
297+
IF(SCL_ENABLE_TESTING)
298298
ADD_SUBDIRECTORY( test )
299-
ENDIF(ENABLE_TESTING)
299+
ENDIF(SCL_ENABLE_TESTING)
300300
ADD_SUBDIRECTORY(doc)
301301

302302
# this is for testing - 'make core' builds everything that isn't generated

ctest_matrix.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ set( CTEST_MEMORYCHECK_COMMAND /usr/bin/valgrind )
88
set( CTEST_INITIAL_CACHE "
99
SITE:STRING=${CTEST_SITE}
1010
BUILDNAME:STRING=${CTEST_BUILD_NAME}
11-
ENABLE_TESTING:BOOL=ON
12-
CMAKE_BUILD_TYPE:STRING=Debug
11+
SCL_ENABLE_TESTING:BOOL=ON
12+
SCL_BUILD_TYPE:STRING=Debug
1313
")
1414

1515

1616
ctest_start(matrix)
1717
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
18-
ctest_configure( BUILD "${CTEST_BINARY_DIRECTORY}" OPTIONS -DENABLE_TESTING=ON )
18+
ctest_configure( BUILD "${CTEST_BINARY_DIRECTORY}" OPTIONS -DSCL_ENABLE_TESTING=ON )
1919
ctest_build( BUILD "${CTEST_BINARY_DIRECTORY}" )
2020
message("running tests")
2121
ctest_test( BUILD "${CTEST_BINARY_DIRECTORY}" INCLUDE_LABEL "cpp_schema_....*" )

data/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#this sets a property so that the target doesn't get built by 'make' or 'make all'
33
#useful when testing generation of schema code/compiling schem libs/etc
44
FUNCTION( TESTABLE_TARGET target )
5-
if(ENABLE_TESTING)
5+
if(SCL_ENABLE_TESTING)
66
set_target_properties( ${target} PROPERTIES EXCLUDE_FROM_ALL ON )
77
endif()
88
ENDFUNCTION( TESTABLE_TARGET )

run_ctest.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ set( CTEST_MEMORYCHECK_COMMAND /usr/bin/valgrind )
88
set( CTEST_INITIAL_CACHE "
99
SITE:STRING=${CTEST_SITE}
1010
BUILDNAME:STRING=${CTEST_BUILD_NAME}
11-
ENABLE_TESTING:BOOL=ON
12-
CMAKE_BUILD_TYPE:STRING=Debug
11+
SCL_ENABLE_TESTING:BOOL=ON
12+
SCL_BUILD_TYPE:STRING=Debug
1313
")
1414

1515

@@ -94,7 +94,7 @@ set(CTEST_BUILD_FLAGS "-j${PROCESSOR_COUNT}")
9494
ctest_start(Experimental)
9595
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
9696

97-
ctest_configure( BUILD "${CTEST_BINARY_DIRECTORY}" APPEND OPTIONS -DENABLE_TESTING=ON )
97+
ctest_configure( BUILD "${CTEST_BINARY_DIRECTORY}" APPEND OPTIONS -DSCL_ENABLE_TESTING=ON )
9898
SUBMIT_TEST( Configure )
9999
ctest_build( BUILD "${CTEST_BINARY_DIRECTORY}" APPEND )
100100
SUBMIT_TEST( Build )

0 commit comments

Comments
 (0)