mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 04:48:27 +00:00
Rename BUILD_TESTING cache variable to SLINT_BUILD_TESTING Fixes #2362
This commit is contained in:
parent
a35ddbdbf9
commit
f376741167
3 changed files with 5 additions and 5 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -352,6 +352,6 @@ endif(NOT WIN32)
|
|||
|
||||
include(CPack)
|
||||
|
||||
if(BUILD_TESTING)
|
||||
if(SLINT_BUILD_TESTING)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue