Pārlūkot izejas kodu

Only run the test if we are using a makefile generator under UNIX

Alex
Alex Neundorf 14 gadi atpakaļ
vecāks
revīzija
fd15b5e1c4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Tests/FindPackageModeMakefileTest/CMakeLists.txt

+ 1 - 1
Tests/FindPackageModeMakefileTest/CMakeLists.txt

@@ -8,7 +8,7 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES GNU
   find_package(PNG)
 
   # the test program links against the png lib, so test first whether it exists
-  if(PNG_FOUND)
+  if(PNG_FOUND  AND  UNIX  AND  "${CMAKE_GENERATOR}" MATCHES "Makefile")
 
     get_target_property(cmakeExecutable cmake LOCATION)