diff --git a/CMakeLists.txt b/CMakeLists.txt index 08844715e..aec6fa4b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,6 @@ set (RELEASE_SERVICE_VERSION_MICRO "70") set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}") project(kdeconnect VERSION ${RELEASE_SERVICE_VERSION}) -set(CMAKE_C_STANDARD 99) -set(CMAKE_CXX_STANDARD 17) if (SAILFISHOS) set(KF5_MIN_VERSION "5.36.0") @@ -22,6 +20,7 @@ set(QCA_MIN_VERSION "2.1.0") find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) +set(CMAKE_C_STANDARD 99) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON)