CMake: when migrating TetraIF, also include Lts/Proxies/TrainingAreaBase and Z/src in build tree\n\nThis ensures generated training_area header and NGLLogger are present when building TetraIF in an isolated migration run.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
1e438ffb37
commit
b190fb33e7
1 file changed
+7
@@ -359,6 +359,13 @@ endfunction()
|
||||
NGL_ADD_SUBDIR_GUARDED(TetraIF)
|
||||
NGL_ADD_SUBDIR_GUARDED(Z/src)
|
||||
NGL_ADD_SUBDIR_GUARDED(Lts)
|
||||
# Special-case: when migrating TetraIF, also include TrainingAreaBase and Z so generated headers
|
||||
# and internal logger target are available in the same build tree for TetraIF dependents.
|
||||
if(DEFINED MIGRATE_MODULE AND MIGRATE_MODULE STREQUAL "TetraIF")
|
||||
message(STATUS "Including helper modules for TetraIF migration: Lts/Proxies/TrainingAreaBase and Z/src")
|
||||
add_subdirectory(Lts/Proxies/TrainingAreaBase)
|
||||
add_subdirectory(Z/src)
|
||||
endif()
|
||||
# at last, to make sure we get all targets in NGL_TS_TARGETS property
|
||||
NGL_ADD_SUBDIR_GUARDED(translations)
|
||||
#-----------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user