Skip to content

Commit

Permalink
build/cmake: use standard language for test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Oct 26, 2024
1 parent b926fa2 commit 55e6b15
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ project(
# Options, Variable & Constants
#

option(BUILD_LIB "Create a target for the watcher-c libraries" ON)
option(BUILD_BIN "Create a target for the CLI binaries" ON)
option(BUILD_HDR "Create a target for the watcher headers" ON)
option(BUILD_TEST "Create a target for the test programs" ON)
option(BUILD_SAN "Mega-option to allow sanitizers" ON)
option(BUILD_ASAN "Create a target for the address sanitizer" ON)
option(BUILD_MSAN "Create a target for the memory sanitizer" ON)
option(BUILD_TSAN "Create a target for the thread sanitizer" ON)
option(BUILD_UBSAN "Create a target for the undefined behavior sanitizer" ON)
option(BUILD_LIB "Create a target for the watcher-c libraries" ON)
option(BUILD_BIN "Create a target for the CLI binaries" ON)
option(BUILD_HDR "Create a target for the watcher headers" ON)
option(BUILD_TESTING "Create a target for the test programs" ON)
option(BUILD_SAN "Mega-option to allow sanitizers" ON)
option(BUILD_ASAN "Create a target for the address sanitizer" ON)
option(BUILD_MSAN "Create a target for the memory sanitizer" ON)
option(BUILD_TSAN "Create a target for the thread sanitizer" ON)
option(BUILD_UBSAN "Create a target for the undefined behavior sanitizer" ON)

set(WTR_WATCHER_CXX_STD 17)

Expand Down Expand Up @@ -176,11 +176,11 @@ function(wtr_add_bin_target
elseif(NOT IS_TEST)
message(STATUS "${NAME}: Added (BUILD_BIN=${BUILD_BIN})")
endif()
if(IS_TEST AND NOT BUILD_TEST)
message(STATUS "${NAME}: Skipped (BUILD_TEST=${BUILD_TEST})")
if(IS_TEST AND NOT BUILD_TESTING)
message(STATUS "${NAME}: Skipped (BUILD_TESTING=${BUILD_TESTING})")
return()
elseif(IS_TEST)
message(STATUS "${NAME}: Added (BUILD_TEST=${BUILD_TEST})")
message(STATUS "${NAME}: Added (BUILD_TESTING=${BUILD_TESTING})")
endif()
include(CheckIPOSupported)
include(FetchContent)
Expand Down

0 comments on commit 55e6b15

Please sign in to comment.