streamline

This commit is contained in:
Radovan Bast
2015-09-17 01:28:30 +02:00
parent ea89ce9f0d
commit 2614ce9cf2
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,9 @@ function(_find_include_dir _names _hints _result)
set(_all_include_files_work TRUE)
foreach(_name ${_names})
check_include_file(${_include_dir}/${_name} _include_file_works)
set(_all_include_files_work (${_all_include_files_work} AND ${_include_file_works}))
if(NOT _include_file_works)
set(_all_include_files_work FALSE)
endif()
endforeach()
if(${_all_include_files_work})
set(${_result} ${_include_dir} PARENT_SCOPE)