[cmake] fix bug in exclude files
@@ -53,17 +53,19 @@ function(get_sources COMPONENT)
# Check if some sources are to be excluded from build
foreach(_FILE IN LISTS source_EXCLUDE)
- if(${CMAKE_VERSION} VERSION_GREATER "3.12.0")
- file(GLOB _GFILE CONFIGURE_DEPENDS ${_FILE})
- else()
- file(GLOB _GFILE ${_FILE})
- endif()
-
- if(_GFILE)
- list(REMOVE_ITEM SOURCES_FILES ${_GFILE})
- else()
- message(WARNING "file to be excluded NOT FOUND : ${_FILE}")
- endif()
+ # if(${CMAKE_VERSION} VERSION_GREATER "3.12.0")
+ # file(GLOB _GFILE CONFIGURE_DEPENDS ${_FILE})
+ # else()
+ # file(GLOB _GFILE ${_FILE})
+ # endif()
+ # MESSAGE("_GFILE::" ${_GFILE})
+ # MESSAGE("SOURCES_FILES::" ${SOURCES_FILES})
+ # if(_GFILE)
+ # list(REMOVE_ITEM SOURCES_FILES ${_GFILE})
+ # else()
+ # message(WARNING "file to be excluded NOT FOUND : ${_FILE}")
+ #endif()
+ list(REMOVE_ITEM SOURCES_FILES ${_FILE})
endforeach()
set(${COMPONENT}_SRCS ${SOURCES_FILES} PARENT_SCOPE)
