made the searching of MySQL headers look recursively for subdirectories
This commit is contained in:
11
macros.cmake
11
macros.cmake
@ -208,3 +208,14 @@ macro(check_dirs)
|
||||
endif()
|
||||
|
||||
endmacro()
|
||||
|
||||
function(subdirs VAR DIRPATH)
|
||||
|
||||
file(GLOB_RECURSE SDIR ${DIRPATH}/*)
|
||||
foreach(LOOP ${SDIR})
|
||||
get_filename_component(LOOP ${LOOP} DIRECTORY)
|
||||
list(APPEND ALLDIRS ${LOOP})
|
||||
endforeach()
|
||||
list(REMOVE_DUPLICATES ALLDIRS)
|
||||
set(${VAR} "${ALLDIRS}" CACHE PATH " " FORCE)
|
||||
endfunction()
|
||||
Reference in New Issue
Block a user