Skip to content

Commit

Permalink
Change sequence of C++ standard setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dragotin committed Jan 20, 2025
1 parent ef8f87f commit a739718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
cmake_minimum_required(VERSION 3.16.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

project(kraft LANGUAGES CXX)
cmake_policy(SET CMP0063 NEW)

SET(ECM_MIN_VERSION "6.0.0")
FIND_PACKAGE(ECM ${ECM_MIN_VERSION} REQUIRED NO_MODULE)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)

set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
Expand Down

0 comments on commit a739718

Please sign in to comment.