Skip to content

Commit 0d4f63d

Browse files
Use cache variables to customize
Use cache variables in CMakeLists.txt to customize build settings.
1 parent f79c64a commit 0d4f63d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")
88

99
project(ixwebsocket C CXX)
1010

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

1616
option (BUILD_DEMO OFF)
1717

0 commit comments

Comments
 (0)