summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/user_headerunit2
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-02-05 18:22:44 +0100
committerArthur LAURENT <[email protected]>2024-02-05 18:22:44 +0100
commit3a7d68de17f19afadc2f7eec698d54861ecd729d (patch)
tree78fec7d5b63d564b6b03603ea56662b856253ee8 /tests/projects/c++/modules/user_headerunit2
parent6739478d0bf6a4aaf0d1a1caf1c6b60532fa07f8 (diff)
update relevent tests to use moduleonly target rule
Diffstat (limited to 'tests/projects/c++/modules/user_headerunit2')
-rw-r--r--tests/projects/c++/modules/user_headerunit2/a/xmake.lua6
-rw-r--r--tests/projects/c++/modules/user_headerunit2/b/xmake.lua5
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/projects/c++/modules/user_headerunit2/a/xmake.lua b/tests/projects/c++/modules/user_headerunit2/a/xmake.lua
index 3225b2814..261428921 100644
--- a/tests/projects/c++/modules/user_headerunit2/a/xmake.lua
+++ b/tests/projects/c++/modules/user_headerunit2/a/xmake.lua
@@ -1,4 +1,6 @@
target("a")
set_languages("cxxlatest")
- set_kind("object")
- add_files("a.mpp", {public = true})
+ set_kind("headeronly")
+ add_rules("c++.moduleonly")
+ add_headerfiles("*.hpp")
+ add_files("a.mpp")
diff --git a/tests/projects/c++/modules/user_headerunit2/b/xmake.lua b/tests/projects/c++/modules/user_headerunit2/b/xmake.lua
index 24f9c9b1f..9821fcd6d 100644
--- a/tests/projects/c++/modules/user_headerunit2/b/xmake.lua
+++ b/tests/projects/c++/modules/user_headerunit2/b/xmake.lua
@@ -1,5 +1,6 @@
target("b")
add_deps("a")
set_languages("cxxlatest")
- set_kind("object")
- add_files("b.mpp", {public = true})
+ set_kind("headeronly")
+ add_rules("c++.moduleonly")
+ add_files("b.mpp")