aboutsummaryrefslogtreecommitdiffstats
path: root/build/ymake.core.conf
diff options
context:
space:
mode:
authorsvidyuk <svidyuk@yandex-team.com>2024-01-29 09:07:11 +0300
committerAlexander Smirnov <alex@ydb.tech>2024-01-31 14:24:03 +0300
commitda5d307c58c15676016444611a46b831fcc1a777 (patch)
tree57b3d1e353e3b3a962fdc7aa2affe780ce915b9e /build/ymake.core.conf
parentfd3796e00ba02fc641d623bbb3df1d6e0bbb0f1a (diff)
downloadydb-da5d307c58c15676016444611a46b831fcc1a777.tar.gz
Export module headers to cmake
Diffstat (limited to 'build/ymake.core.conf')
-rw-r--r--build/ymake.core.conf6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index c0c2a070f5..0cbf22b6a0 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -1166,7 +1166,8 @@ CPP_PROGRAM_SEM=add_executable $MODDIR $CMAKE_TARGET_NAME ${hide:TARGET} ${hide:
&& target_link_options PRIVATE $LDFLAGS_GLOBAL_RAW $LDFLAGS $OBJADDE_LIB $OBJADDE_LIB_GLOBAL $OBJADDE \
&& target_include_directories PRIVATE $_C__INCLUDE_OWNED \
&& target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS $_SEM_EXTRA_CXX_FLAGS \
- && target_compile_options PRIVATE $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW
+ && target_compile_options PRIVATE $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW \
+ && target_sources PRIVATE ${MODULE_EXPLICIT_HEADERS}
### @usage: PROGRAM([progname])
###
### Regular program module.
@@ -1778,7 +1779,8 @@ CPP_LIBRARY_SEM=add_library ${MODDIR} $CMAKE_TARGET_NAME ${hide:TARGET} ${hide:A
&& target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS $_SEM_EXTRA_CXX_FLAGS \
&& target_compile_options PUBLIC $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW \
&& target_link_options INTERFACE $LDFLAGS_GLOBAL_RAW \
- && add_language C && add_language CXX
+ && add_language C && add_language CXX \
+ && target_sources PRIVATE ${MODULE_EXPLICIT_HEADERS}
CPP_OBJ_LIBRARY_SEM=add_global_library_for ${MODDIR} ${suf=.global:CMAKE_TARGET_NAME} $CMAKE_TARGET_NAME ${hide:GLOBAL_TARGET} ${hide:AUTO_INPUT} \
&& target_include_directories PUBLIC $_C__INCLUDE_GLOBAL \
&& target_include_directories PRIVATE $_C__INCLUDE_OWNED \