File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.28 FATAL_ERROR )
1+ cmake_minimum_required (VERSION 3.25 FATAL_ERROR )
22
33
44# Set defaults before project call
Original file line number Diff line number Diff line change 11# Add a new parser library
22function (add_pretty_parser TARGET )
3- cmake_parse_arguments (PARSE_ARGV 1 OPTIONS "C" "" "DEPS;PRECOMPILED_HEADERS;SOURCES;MODULES " )
3+ cmake_parse_arguments (PARSE_ARGV 1 OPTIONS "C" "" "DEPS;PRECOMPILED_HEADERS;SOURCES" )
44
55 if (OPTIONS_C)
66 add_library (${TARGET} c SHARED ${${PROJECT_NAME } c_SOURCES} ${OPTIONS_PRECOMPILED_HEADERS} ${OPTIONS_SOURCES} )
@@ -10,9 +10,6 @@ function(add_pretty_parser TARGET)
1010 set (TARGET "${TARGET} c" )
1111 else ()
1212 add_library (${TARGET} STATIC ${OPTIONS_PRECOMPILED_HEADERS} ${OPTIONS_SOURCES} )
13- if (NOT ("MODULES" IN_LIST OPTIONS_UNPARSED_ARGUMENTS))
14- target_sources (${TARGET} PUBLIC FILE_SET CXX_MODULES FILES ${OPTIONS_MODULES} )
15- endif ()
1613 endif ()
1714 if (NOT ("PRECOMPILED_HEADERS" IN_LIST OPTIONS_UNPARSED_ARGUMENTS))
1815 target_precompile_headers (${TARGET} PUBLIC ${OPTIONS_HEADERS} )
You can’t perform that action at this time.
0 commit comments