Skip to content

How to set one target to see modules from another? #5229

Closed Answered by waruqi
kridenberg asked this question in Q&A
Discussion options

You must be logged in to vote

@kridenberg You should set {public = true} to export .ixx module interfaces for target_1

target("test_target_1")
    add_files("a/file1.ixx", {public = true})

then test_target_2 will get it. see

add_files("src/mod.mpp", {public = true})

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@waruqi
Comment options

@kridenberg
Comment options

Comment options

You must be logged in to vote
4 replies
@waruqi
Comment options

@waruqi
Comment options

Answer selected by kridenberg
@kridenberg
Comment options

@kridenberg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants