From 616521ae1ea1b74df7117d830e93540d5d0e693e Mon Sep 17 00:00:00 2001 From: "Dementiev, Roman" Date: Sat, 11 Jan 2025 12:17:48 +0100 Subject: [PATCH] reduce required cmake version Change-Id: I5b3bf8b7f60ec343dd78998ddc02c287d523a0b4 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e216abe..5f8f3ebf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2022-2025, Intel Corporation -cmake_minimum_required(VERSION 3.12) +cmake_minimum_required(VERSION 3.5) project(PCM) @@ -158,7 +158,7 @@ add_library(PCM_PUGIXML INTERFACE) # interface library for pugixml if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/pugixml/src/pugixml.cpp") message(STATUS "Local pugixml exists: ${CMAKE_CURRENT_SOURCE_DIR}/src/pugixml/src/pugixml.cpp") set(PCM_PUGIXML_CPP ${CMAKE_CURRENT_SOURCE_DIR}/src/pugixml/src/pugixml.cpp) - add_compile_definitions(PCM_PUGIXML_AVAILABLE) + add_compile_options(-DPCM_PUGIXML_AVAILABLE) else() message(STATUS "Local pugixml doesn't exist") # message(WARNING