cmake/scripts/convert_vlc_to_cmake.sh: Fix config.h.cmake install.
[vlc.git] / extras / buildsystem / cmake / include / vlc_check_include_files.cmake
1 include (CheckIncludeFiles)
2
3 MACRO(vlc_check_include_files files)
4     foreach(filepath ${ARGV})
5         # Construct the HAVE_ var
6         string(REGEX REPLACE "[-./:;,?=+\\]" "_" filepath_escaped ${filepath})
7         string(TOUPPER ${filepath_escaped} filepath_escaped)
8         check_include_files( ${filepath} HAVE_${filepath_escaped} )
9     endforeach(filepath)
10 ENDMACRO(vlc_check_include_files)