[vlc-devel] commit: Fix postproc header detection ( the test depends on inclusion of stdint. h but there is no right way to do that in cmake) ( Rafaël Carré )
Pierre d'Herbemont
pdherbemont at free.fr
Sun Mar 9 19:42:26 CET 2008
On Mar 9, 2008, at 5:52 PM, git version control wrote:
> vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Mar
> 9 17:52:31 2008 +0100| [cbb88be6390edaa065dce0b3a918ad7bf2cf9af5]
>
> Fix postproc header detection (the test depends on inclusion of
> stdint.h but there is no right way to do that in cmake)
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cbb88be6390edaa065dce0b3a918ad7bf2cf9af5
> ---
>
> extras/buildsystem/cmake/include/config.cmake | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/extras/buildsystem/cmake/include/config.cmake b/extras/
> buildsystem/cmake/include/config.cmake
> index dd11f61..a7df0d1 100644
> --- a/extras/buildsystem/cmake/include/config.cmake
> +++ b/extras/buildsystem/cmake/include/config.cmake
> @@ -467,7 +467,8 @@ if(FFmpeg_FOUND)
> vlc_check_include_files (ffmpeg/avcodec.h libavcodec/avcodec.h)
> vlc_check_include_files (ffmpeg/avutil.h libavutil/avutil.h)
> vlc_check_include_files (ffmpeg/swscale.h libswscale/swscale.h)
> - vlc_check_include_files (postproc/postprocess.h libpostproc/
> postprocess.h)
> + check_c_source_compiles( "#include <stdint.h>\n#include <postproc/
> postprocess.h>\nint main(){return 0;}" HAVE_POSTPROC_POSTPROCESS_H )
> + check_c_source_compiles( "#include <stdint.h>\n#include
> <libpostproc/postprocess.h>\nint main(){return 0;}"
> HAVE_LIBPOSTPROC_POSTPROCESS_H )
You can do that with like:
check_include_files ("stdint.h; libpostproc/postprocess.h"
HAVE_LIBPOSTPROC_POSTPROCESS_H)
(For next time)
Pierre.
More information about the vlc-devel
mailing list