Skip to content

Commit

Permalink
build: add a message about some BUILD_* flags
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Oct 6, 2023
1 parent 38d7fb8 commit e4ad2c6
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ if (CMAKE_BUILD_TYPE STREQUAL Debug)
set(VERSION_STRING "${VERSION_STRING}-debug")
endif()

message(STATUS "*** Will build version ${VERSION_STRING} ***")

set(BUILD_CLIENT TRUE CACHE BOOL "Build client")
set(BUILD_SERVER FALSE CACHE BOOL "Build server")
set(BUILD_UNITTESTS TRUE CACHE BOOL "Build unittests")
set(BUILD_BENCHMARKS FALSE CACHE BOOL "Build benchmarks")
set(BUILD_DOCUMENTATION TRUE CACHE BOOL "Build documentation")

# Configuration options
set(DEFAULT_RUN_IN_PLACE FALSE)
Expand All @@ -48,12 +51,15 @@ endif()
set(RUN_IN_PLACE ${DEFAULT_RUN_IN_PLACE} CACHE BOOL
"Run directly in source directory structure")

message(STATUS "*** Will build version ${VERSION_STRING} ***")
message(STATUS "Compiling client: " ${BUILD_CLIENT})
message(STATUS "Compiling server: " ${BUILD_SERVER})
message(STATUS "Compiling unittests: " ${BUILD_UNITTESTS})
message(STATUS "Compiling benchmarks: " ${BUILD_BENCHMARKS})
message(STATUS "Generating documentation: " ${BUILD_DOCUMENTATION})
message(STATUS "Run in place build: " ${RUN_IN_PLACE})


set(BUILD_CLIENT TRUE CACHE BOOL "Build client")
set(BUILD_SERVER FALSE CACHE BOOL "Build server")
set(BUILD_UNITTESTS TRUE CACHE BOOL "Build unittests")
set(BUILD_BENCHMARKS FALSE CACHE BOOL "Build benchmarks")
set(BUILD_DOCUMENTATION TRUE CACHE BOOL "Build documentation")

set(WARN_ALL TRUE CACHE BOOL "Enable -Wall for Release build")

Expand Down

0 comments on commit e4ad2c6

Please sign in to comment.