Skip to content

Commit 947bd83

Browse files
authored
fix(build): use BUILD_TESTING convention instead of custom name
1 parent ec28b58 commit 947bd83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
1313
set(LIBUV_VERSION v1.44.2)
1414

1515
include(CMakeDependentOption)
16-
cmake_dependent_option(UVWASI_BUILD_TESTS
16+
cmake_dependent_option(BUILD_TESTING
1717
"Build the unit tests when uvwasi is the root project" ON
1818
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF)
1919

@@ -122,7 +122,7 @@ endif()
122122

123123

124124
## Test targets.
125-
if(UVWASI_BUILD_TESTS)
125+
if(BUILD_TESTING)
126126
enable_testing()
127127
file(GLOB test_files "test/test-*.c")
128128
foreach(file ${test_files})

0 commit comments

Comments
 (0)