Only run the test if we are using a makefile generator under UNIX
Alex
This commit is contained in:
parent
9fc87c6343
commit
fd15b5e1c4
|
@ -8,7 +8,7 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES GNU
|
||||||
find_package(PNG)
|
find_package(PNG)
|
||||||
|
|
||||||
# the test program links against the png lib, so test first whether it exists
|
# 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)
|
get_target_property(cmakeExecutable cmake LOCATION)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue