Skip to content

Commit

Permalink
Organize CMake build options
Browse files Browse the repository at this point in the history
  • Loading branch information
doganulus committed Aug 13, 2023
1 parent 056b7f4 commit a5bea44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_FLAGS_COVERAGE "-O0 --coverage")

option(ENABLE_TESTS ON)
option(BUILD_TESTS ON)
option(BUILD_REELAY_APPS ON)
option(BUILD_PYTHON_BINDINGS OFF)

Expand Down Expand Up @@ -48,7 +48,7 @@ install(TARGETS reelay LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/include)

add_subdirectory(src)

if(ENABLE_TESTS)
if(BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ install_components = ["python_modules"]
env = {}

[tool.py-build-cmake.cmake.options]
"CMAKE_EXPORT_COMPILE_COMMANDS:BOOL" = "ON"
"BUILD_TESTS:BOOL" = "OFF"
"BUILD_REELAY_APPS:BOOL" = "OFF"
"BUILD_PYTHON_BINDINGS:BOOL" = "ON"
"ENABLE_TESTS:BOOL" = "OFF"

[tool.py-build-cmake.linux.cmake] # Linux-specific options
generator = "Ninja Multi-Config"
Expand Down

0 comments on commit a5bea44

Please sign in to comment.