]> git.sesse.net Git - vlc/blob - extras/buildsystem/cmake/include/vlc_check_include_files.cmake
cmake: Don't use poll() on Mac OS X, as it can't poll a tty properly.
[vlc] / 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)