diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-08-11 23:32:30 +0200 |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-08-11 23:34:25 +0200 |
commit | fd15b5e1c425b0e2cb418e87a115215b0aa7501a (patch) | |
tree | 8e61d717dafd38225f5010c9ddacb44b4bfec093 /Tests/FindPackageModeMakefileTest | |
parent | 9fc87c6343a5d448f04d7a9397beb95e3b85178e (diff) | |
download | cmake-fd15b5e1c425b0e2cb418e87a115215b0aa7501a.tar.gz |
Only run the test if we are using a makefile generator under UNIX
Alex
Diffstat (limited to 'Tests/FindPackageModeMakefileTest')
-rw-r--r-- | Tests/FindPackageModeMakefileTest/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/FindPackageModeMakefileTest/CMakeLists.txt b/Tests/FindPackageModeMakefileTest/CMakeLists.txt index 0be3783dcb..f0faab93df 100644 --- a/Tests/FindPackageModeMakefileTest/CMakeLists.txt +++ b/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) |