made the searching of MySQL headers look recursively for subdirectories
This commit is contained in:
parent
725a432bf7
commit
d8d920bdb4
@ -55,9 +55,11 @@ if(GCOV)
|
||||
endif()
|
||||
|
||||
|
||||
include_directories(${MYSQL_DIR})
|
||||
include_directories(${MYSQL_DIR}/private)
|
||||
include_directories(${MYSQL_DIR}/extra)
|
||||
subdirs(MYSQL_DIR_ALL ${MYSQL_DIR})
|
||||
foreach(DIR ${MYSQL_DIR_ALL})
|
||||
include_directories(${DIR})
|
||||
endforeach()
|
||||
|
||||
include_directories(${MYSQL_DIR}/..)
|
||||
include_directories(utils)
|
||||
include_directories(log_manager)
|
||||
|
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()
|
Loading…
x
Reference in New Issue
Block a user