Tests/RunCMake/CXXModules: mark IMPORTED targets as INTERFACE

Now that `Ninja` generators will know to generate rules for `IMPORTED`
targets, mark these as `INTERFACE` to avoid requirements of actual
artifacts.
This commit is contained in:
Ben Boeckel
2022-11-21 09:13:35 -05:00
parent a971fcfde7
commit c53748cc09
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
add_library(module-header SHARED IMPORTED)
add_library(module-header INTERFACE IMPORTED)
target_sources(module-header
INTERFACE
FILE_SET fs TYPE CXX_MODULE_HEADER_UNITS FILES

View File

@@ -1,4 +1,4 @@
add_library(module SHARED IMPORTED)
add_library(module INTERFACE IMPORTED)
target_sources(module
INTERFACE
FILE_SET fs TYPE CXX_MODULES FILES