summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-12-15 11:56:58 +0000
committerJosé Fonseca <jfonseca@vmware.com>2014-12-16 11:19:14 +0000
commit93242f2dafb598a7cbc4623ff0ff9475f9e90b20 (patch)
tree57ec050966c706ffa6969797f248e74a7bb049a6
parent47f91a67851cc882ec01cff329ada74aab45dfb6 (diff)
cmake: Don't rely on pkg-config for all Windows builds.
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. Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ba6df880..7be1bc45f 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)