From bafac65e57f2631df4ca32573d905f2736cb5aa2 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Sat, 12 Oct 2024 15:51:49 -0400 Subject: [PATCH] Rename variable to add `AU_` prefix --- CMakeLists.txt | 4 ++-- cmake/HeaderOnlyLibrary.cmake | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 48d2a4ba..c6a7aebe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,12 +32,12 @@ project( LANGUAGES CXX ) -option(ENABLE_TESTING "Build Unit Tests" ON) +option(AU_ENABLE_TESTING "Build Unit Tests" ON) # The export set for all of our headers. set(AU_EXPORT_SET_NAME AuHeaders) -if(ENABLE_TESTING) +if(AU_ENABLE_TESTING) message(STATUS "Unit tests enabled") enable_testing() diff --git a/cmake/HeaderOnlyLibrary.cmake b/cmake/HeaderOnlyLibrary.cmake index d529e933..eafd4d1a 100644 --- a/cmake/HeaderOnlyLibrary.cmake +++ b/cmake/HeaderOnlyLibrary.cmake @@ -74,7 +74,7 @@ function(header_only_library) endfunction() function(gtest_based_test) - if (NOT ENABLE_TESTING) + if (NOT AU_ENABLE_TESTING) message(VERBOSE "AU_ENABLE_TESTING not defined; will not create test target.") return() endif()