Browse Source

Add lost semantic for new cmake generator

Add lost semantic for new cmake generator
da5667f95e67a6809518d1faa0d76cd114694b6f
dimdim11 7 months ago
parent
commit
ad85354eec
1 changed files with 4 additions and 3 deletions
  1. 4 3
      build/ymake.core.conf

+ 4 - 3
build/ymake.core.conf

@@ -4454,15 +4454,16 @@ macro SYMLINK(From, To) {
 # tag:internal
 ### @usage: _TARGET_SOURCES_FOR_HEADERS_IMPL([GENERATE] Args...) # internal
 ### Generate prefix " && target_sources PRIVATE " before $Args when GENERATE is specified in the list of actual arguments
-macro _TARGET_SOURCES_FOR_HEADERS_IMPL(GENERATE?" && target_sources PRIVATE ":"", Args...) {
-    .SEM=$GENERATE ${output;ext=.h:Args} ${output;ext=.hh:Args} ${output;ext=.hpp:Args} ${output;ext=.inc:Args} ${output;ext=.i:Args}
+### Generate prefix " && target_options-privates-ITEM && target_options-privates-option target_sources && target_options-privates-args " before $Args when GENERATE2 is specified in the list of actual arguments
+macro _TARGET_SOURCES_FOR_HEADERS_IMPL(GENERATE?" && target_sources PRIVATE ":"", GENERATE2?" && target_options-privates-ITEM && target_options-privates-option target_sources && target_options-privates-args ":"", Args...) {
+    .SEM=$GENERATE ${output;ext=.h:Args} ${output;ext=.hh:Args} ${output;ext=.hpp:Args} ${output;ext=.inc:Args} ${output;ext=.i:Args} $GENERATE2 ${output;ext=.h:Args} ${output;ext=.hh:Args} ${output;ext=.hpp:Args} ${output;ext=.inc:Args} ${output;ext=.i:Args}
 }
 
 # tag:internal
 ### @usage: _TARGET_SOURCES_FOR_HEADERS(Args...) # internal
 ### Generate prefix " && target_sources PRIVATE " before $Args if Args is not empty
 macro _TARGET_SOURCES_FOR_HEADERS(Args...) {
-    .SEM=$_TARGET_SOURCES_FOR_HEADERS_IMPL(${pre=GENERATE :Args})
+    .SEM=$_TARGET_SOURCES_FOR_HEADERS_IMPL(${pre=GENERATE GENERATE2 :Args})
 }
 
 # tag:internal