Skip to content

Commit

Permalink
Use cache variables to customize
Browse files Browse the repository at this point in the history
Use cache variables in CMakeLists.txt to customize build settings.
  • Loading branch information
hotwatermorning committed Sep 3, 2023
1 parent ef57e3a commit e400619
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")

project(ixwebsocket LANGUAGES C CXX VERSION 11.4.4)

set (CMAKE_CXX_STANDARD 11)
set (CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_EXTENSIONS OFF)
set (CMAKE_EXPORT_COMPILE_COMMANDS yes)
set (CMAKE_CXX_STANDARD 11 CACHE STRING "C++ Standard Version")
set (CMAKE_CXX_STANDARD_REQUIRED ON BOOL "C++ Standard Required")
set (CMAKE_CXX_EXTENSIONS OFF BOOL "C++ Extensions")
set (CMAKE_EXPORT_COMPILE_COMMANDS yes BOOL "Export Compile Commands")

option (BUILD_DEMO OFF)

Expand Down

0 comments on commit e400619

Please sign in to comment.