summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-02-19 23:00:40 +0800
committerruki <[email protected]>2024-02-19 23:00:40 +0800
commit87d27fbdd46f44690f5d47cff8ad8145664aa19d (patch)
tree99a393ef482501484a23be44b33596f8d745a699
parent6162e8926d73232f54ffa0ff1bc40507690d52c9 (diff)
scan modules
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index b313c0d19..6a19f111a 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -261,6 +261,9 @@ function _add_project(cmakelists, languages, outputdir)
cmakelists:print("project(%s%s)", project_name, project_info)
end
end
+ if _can_native_support_for_cxxmodules() then
+ cmakelists:print("set(CMAKE_CXX_SCAN_FOR_MODULES ON)")
+ end
cmakelists:print("")
end