[Piglit] [PATCH 02/14] cmake: For MSVC, add "include/msvc/c99" to include path

Jose Fonseca jfonseca at vmware.com
Wed Jun 13 00:41:15 PDT 2012



----- Original Message -----
> Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
> ---
>  CMakeLists.txt |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/CMakeLists.txt b/CMakeLists.txt
> index 7202417..0dbb14f 100644
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -138,6 +138,8 @@ if (MINGW)
>  endif ()
>  
>  if (WIN32)
> +	include_directories("include/msvc/c99")
> +

WIN32 is also defined for MinGW, which does not need these headers. To only include this on MSVC this should be done as

  if (MSVC)
	  include_directories(include/msvc/c99)
  endif ()

Jose

>  	# MSVC & MinGW only define & use APIENTRY
>  	add_definitions (-DGLAPIENTRY=__stdcall)
>  
> --
> 1.7.10.4
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
> 


More information about the Piglit mailing list