mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 12:08:50 +03:00
Set cxx standard as cache variable for when toolchain file is not used
This commit is contained in:
parent
937b35ca8a
commit
247539cb5a
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,9 @@ set(
|
|||
CACHE
|
||||
FILEPATH "Default toolchain"
|
||||
)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard")
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE BOOL "Require C++ standard to be supported")
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "compile as PIC by default")
|
||||
|
||||
option(HUNTER_ENABLED "Enable Hunter package manager" OFF)
|
||||
include("cmake/HunterGate.cmake")
|
||||
|
|
Loading…
Reference in a new issue