Skip to content

Commit 72842a0

Browse files
committed
Update test build logic for WASM
Simplifies test build configuration by enabling tests only when not targeting WASM, removing the OTCLIENT_BUILD_TESTS option and related logic.
1 parent b080210 commit 72842a0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,7 @@ add_subdirectory(src/protobuf)
105105
# Src
106106
add_subdirectory(src)
107107

108-
set(OTCLIENT_BUILD_TESTS_DEFAULT ON)
109-
if(WASM)
110-
set(OTCLIENT_BUILD_TESTS_DEFAULT OFF)
111-
endif()
112-
113-
option(OTCLIENT_BUILD_TESTS "Build unit tests" ${OTCLIENT_BUILD_TESTS_DEFAULT})
114-
115-
if(OTCLIENT_BUILD_TESTS)
108+
if(NOT WASM)
116109
enable_testing()
117110
add_subdirectory(tests)
118111
log_option_enabled("Build tests")

0 commit comments

Comments
 (0)