Rename BUILD_TESTING cache variable to SLINT_BUILD_TESTING #2362 (#2364)

Rename BUILD_TESTING cache variable to SLINT_BUILD_TESTING

Fixes #2362
This commit is contained in:
Jyotirmoy Roy 2023-03-12 15:03:44 +05:30 committed by GitHub
parent a35ddbdbf9
commit f376741167
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -153,7 +153,7 @@ jobs:
with:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
cmakeListsTxtPath: CMakeLists.txt
cmakeAppendedArgs: '-DBUILD_TESTING=ON -DSLINT_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Debug -DSLINT_FEATURE_EXPERIMENTAL=ON'
cmakeAppendedArgs: '-DSLINT_BUILD_TESTING=ON -DSLINT_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Debug -DSLINT_FEATURE_EXPERIMENTAL=ON'
buildDirectory: ${{ runner.workspace }}/cppbuild
buildWithCMakeArgs: '--config Debug'
- name: ctest

View file

@ -10,8 +10,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FeatureSummary)
option(BUILD_TESTING "Build tests" OFF)
add_feature_info(BUILD_TESTING BUILD_TESTING "configure whether to build the test suite")
option(SLINT_BUILD_TESTING "Build tests" OFF)
add_feature_info(SLINT_BUILD_TESTING SLINT_BUILD_TESTING "configure whether to build the test suite")
include(CTest)
# Place all compiled examples into the same bin directory
@ -30,7 +30,7 @@ add_feature_info(SLINT_BUILD_EXAMPLES SLINT_BUILD_EXAMPLES "configure whether to
if(SLINT_BUILD_EXAMPLES)
add_subdirectory(examples)
if(BUILD_TESTING)
if(SLINT_BUILD_TESTING)
add_subdirectory(docs/tutorial/cpp/src/)
endif()
endif()

View file

@ -352,6 +352,6 @@ endif(NOT WIN32)
include(CPack)
if(BUILD_TESTING)
if(SLINT_BUILD_TESTING)
add_subdirectory(tests)
endif()