Remove CXX_MODULES from target sources
This commit is contained in:
@@ -13,9 +13,6 @@ function(PostSetup)
|
||||
endfunction()
|
||||
|
||||
function(AddFGLExecutable NAME SRC_SOURCES_LOCATION)
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
file(GLOB_RECURSE M_SOURCES CONFIGURE_DEPENDS
|
||||
${SRC_SOURCES_LOCATION}/**.cppm)
|
||||
|
||||
@@ -28,7 +25,7 @@ function(AddFGLExecutable NAME SRC_SOURCES_LOCATION)
|
||||
|
||||
add_executable(${NAME})
|
||||
target_sources(${NAME} PUBLIC ${SOURCES})
|
||||
target_sources(${NAME} PUBLIC FILE_SET modules TYPE CXX_MODULES FILES ${M_SOURCES})
|
||||
# target_sources(${NAME} PUBLIC FILE_SET modules TYPE CXX_MODULES FILES ${M_SOURCES})
|
||||
|
||||
target_include_directories(${NAME} PRIVATE ${SRC_SOURCES_LOCATION})
|
||||
set_target_properties(${NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
||||
|
||||
Reference in New Issue
Block a user