Skip to content

Commit

Permalink
fix(cmake): remove potential module support lol
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Jul 22, 2024
1 parent e7dac87 commit bf221cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 1 addition & 4 deletions cmake/AddPrettyParser.cmake
Original file line number Diff line number Diff line change
@@ -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})
Expand All @@ -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})
Expand Down

0 comments on commit bf221cc

Please sign in to comment.