diff --git a/CMakeLists.txt b/CMakeLists.txt index 7fd82d196..402db282b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.28 FATAL_ERROR) +cmake_minimum_required(VERSION 3.25 FATAL_ERROR) # Set defaults before project call diff --git a/cmake/AddPrettyParser.cmake b/cmake/AddPrettyParser.cmake index 9aece6961..2ff7ade9a 100644 --- a/cmake/AddPrettyParser.cmake +++ b/cmake/AddPrettyParser.cmake @@ -1,6 +1,6 @@ # Add a new parser library function(add_pretty_parser TARGET) - cmake_parse_arguments(PARSE_ARGV 1 OPTIONS "C" "" "DEPS;PRECOMPILED_HEADERS;SOURCES;MODULES") + cmake_parse_arguments(PARSE_ARGV 1 OPTIONS "C" "" "DEPS;PRECOMPILED_HEADERS;SOURCES") if(OPTIONS_C) add_library(${TARGET}c SHARED ${${PROJECT_NAME}c_SOURCES} ${OPTIONS_PRECOMPILED_HEADERS} ${OPTIONS_SOURCES}) @@ -10,9 +10,6 @@ function(add_pretty_parser TARGET) set(TARGET "${TARGET}c") else() add_library(${TARGET} STATIC ${OPTIONS_PRECOMPILED_HEADERS} ${OPTIONS_SOURCES}) - if(NOT ("MODULES" IN_LIST OPTIONS_UNPARSED_ARGUMENTS)) - target_sources(${TARGET} PUBLIC FILE_SET CXX_MODULES FILES ${OPTIONS_MODULES}) - endif() endif() if(NOT ("PRECOMPILED_HEADERS" IN_LIST OPTIONS_UNPARSED_ARGUMENTS)) target_precompile_headers(${TARGET} PUBLIC ${OPTIONS_HEADERS})