cmake: make Lts subdirs MIGRATE_MODULE-guarded (use NGL_ADD_SUBDIR_GUARDED)
This commit is contained in:
1 parent
a31ae77087
commit
01f8dd0d09
1 file changed
+5
-4
+5
-4
@@ -19,10 +19,11 @@ endif()
|
|||||||
set(LTS_SUBDIRS Tools Application Common DDS Plugins Projects Proxies Services Viewer)
|
set(LTS_SUBDIRS Tools Application Common DDS Plugins Projects Proxies Services Viewer)
|
||||||
foreach(dir IN LISTS LTS_SUBDIRS)
|
foreach(dir IN LISTS LTS_SUBDIRS)
|
||||||
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${dir}")
|
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${dir}")
|
||||||
ADD_SUBDIRECTORY(${dir})
|
# Use guarded add so top-level MIGRATE_MODULE can restrict which Lts subdirs are included
|
||||||
else()
|
NGL_ADD_SUBDIR_GUARDED(${dir})
|
||||||
message(STATUS "Skipping missing Lts subdirectory: ${dir}")
|
else()
|
||||||
endif()
|
message(STATUS "Skipping missing Lts subdirectory: ${dir}")
|
||||||
|
endif()
|
||||||
|
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user