[Piglit] [PATCH 2/4] cmake: Don't rely on pkg-config for all Windows builds.

Jose Fonseca jfonseca at vmware.com
Mon Dec 15 04:19:16 PST 2014


From: José Fonseca <jfonseca at vmware.com>

Instead of just MSVC builds.

Because pkg-config is not commonly available when compiling natively on
Windows, and gives the wrong results (the host package instead of target
package) when cross-compiling to Windows.
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ba6df8..7be1bc4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,7 +42,7 @@ else()
 endif()
 
 if(PIGLIT_USE_WAFFLE)
-	if (NOT MSVC)
+	if (NOT WIN32)
 		pkg_check_modules(WAFFLE REQUIRED waffle-1)
 
 		if(NOT WAFFLE_FOUND)
-- 
2.1.0



More information about the Piglit mailing list