Skip to content

Commit

Permalink
Rename cmake options from ENABLE_* to OPENCMW_ENABLE_*
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-cukic committed Dec 5, 2023
1 parent c19531d commit 2f432e1
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ enable_doxygen()
# allow for static analysis options
include(cmake/StaticAnalyzers.cmake)

option(ENABLE_TESTING "Enable Test Builds" ${opencmw_MASTER_PROJECT})
option(OPENCMW_ENABLE_TESTING "Enable Test Builds" ${opencmw_MASTER_PROJECT})
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR GENERATOR_IS_MULTI_CONFIG)
option(ENABLE_COVERAGE "Enable Coverage" ON)
option(OPENCMW_ENABLE_COVERAGE "Enable Coverage" ON)
else()
option(ENABLE_COVERAGE "Enable Coverage" OFF)
option(OPENCMW_ENABLE_COVERAGE "Enable Coverage" OFF)
endif()
option(ENABLE_CONCEPTS "Enable Concepts Builds" ${opencmw_MASTER_PROJECT})
option(OPENCMW_ENABLE_CONCEPTS "Enable Concepts Builds" ${opencmw_MASTER_PROJECT})

# Very basic PCH example
option(ENABLE_PCH "Enable Precompiled Headers" OFF)
Expand All @@ -120,10 +120,10 @@ if(ENABLE_PCH)
<utility>)
endif()

if(ENABLE_TESTING)
if(OPENCMW_ENABLE_TESTING)
enable_testing()
message("Building Tests.")
if(ENABLE_COVERAGE)
if(OPENCMW_ENABLE_COVERAGE)
if(UNIX
AND NOT APPLE
AND NOT EMSCRIPTEN) # Linux
Expand Down Expand Up @@ -173,7 +173,7 @@ endif()

add_subdirectory(src)

if(ENABLE_CONCEPTS)
if(OPENCMW_ENABLE_CONCEPTS)
message("Building Concepts")
add_subdirectory(concepts)
endif()
4 changes: 2 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def configure_cmake(self):
"""
tools.mkdir("build")
cmake = CMake(self)
cmake.definitions["ENABLE_CONCEPTS"] = False
cmake.definitions["ENABLE_TESTING"] = False
cmake.definitions["OPENCMW_ENABLE_CONCEPTS"] = False
cmake.definitions["OPENCMW_ENABLE_TESTING"] = False
cmake.configure(build_folder="build")
return cmake

Expand Down
2 changes: 1 addition & 1 deletion src/client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ install(
PUBLIC_HEADER DESTINATION include/opencmw)

# setup tests
if(ENABLE_TESTING)
if(OPENCMW_ENABLE_TESTING)
add_subdirectory(test)
endif()
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ install(
)

# setup tests
if(ENABLE_TESTING)
if(OPENCMW_ENABLE_TESTING)
add_subdirectory(test)
endif()
2 changes: 1 addition & 1 deletion src/disruptor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ install(
PUBLIC_HEADER DESTINATION include/opencmw)

# setup tests
if(ENABLE_TESTING)
if(OPENCMW_ENABLE_TESTING)
add_subdirectory(test)
endif()
2 changes: 1 addition & 1 deletion src/majordomo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ install(
)

# setup tests
if(ENABLE_TESTING)
if(OPENCMW_ENABLE_TESTING)
add_subdirectory(test)
endif()
2 changes: 1 addition & 1 deletion src/serialiser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ install(
)

# setup tests
if(ENABLE_TESTING OR EMSCRIPTEN)
if(OPENCMW_ENABLE_TESTING)
add_subdirectory(test)
endif()
2 changes: 1 addition & 1 deletion src/services/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ install(
EXPORT opencmwTargets
PUBLIC_HEADER DESTINATION include/opencmw)

if(ENABLE_TESTING)
if(OPENCMW_ENABLE_TESTING)
add_subdirectory(test)
endif()

0 comments on commit 2f432e1

Please sign in to comment.