Index: v3d_plugins/CMakeLists.txt =================================================================== --- v3d_plugins/CMakeLists.txt (revision 806) +++ v3d_plugins/CMakeLists.txt (working copy) @@ -1,10 +1,21 @@ # Visit plugin subdirectories if and only if they have a CMakeLists.txt file +if(DEFINED BLACKLIST_PLUGIN) + string(REPLACE " " ";" _list ${BLACKLIST_PLUGIN}) +endif() file(GLOB CMAKE_DIRS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*/CMakeLists.txt") foreach(CMAKE_DIR ${CMAKE_DIRS}) string(REPLACE "//CMakeLists.txt" "" CMAKE_DIR "${CMAKE_DIR}") string(REPLACE "/CMakeLists.txt" "" CMAKE_DIR "${CMAKE_DIR}") - # message(${CMAKE_DIR}) - add_subdirectory(${CMAKE_DIR}) + if(DEFINED BLACKLIST_PLUGIN) + list(FIND _list ${CMAKE_DIR} tmp) + if(tmp GREATER 0 ) + message("plugin->${CMAKE_DIR}< matching variable BLACKLIST_PLUGIN >${BLACKLIST_PLUGIN}<-") + else() + add_subdirectory(${CMAKE_DIR}) + endif() + else() + add_subdirectory(${CMAKE_DIR}) + endif() endforeach() # add_subdirectory( 5dstackconverter )