Commit fd15b5e1 authored by Alexander Neundorf's avatar Alexander Neundorf

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

Alex
parent 9fc87c63
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment