summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
authorDavid Partyka <dave.partyka@kitware.com>2010-10-27 21:23:00 (GMT)
committerDavid Partyka <dave.partyka@kitware.com>2010-10-27 21:23:00 (GMT)
commit48e80eb7246683f471f3886436020d34c784be86 (patch)
tree93b3d4bc389519e2558422c05d12f9dabc91ff85 /Tests/CMakeTests
parentbee4802840607c22d9d37cda8464c17fcdf26529 (diff)
downloadCMake-48e80eb7246683f471f3886436020d34c784be86.zip
CMake-48e80eb7246683f471f3886436020d34c784be86.tar.gz
CMake-48e80eb7246683f471f3886436020d34c784be86.tar.bz2
Fixes to GetPrerequisites for cygwin
Fix IF(WIN32) guards check for cygwin. Fix checking if the depenency is in a system location to use cygwin style paths on cygwin. Also change GetPrerequisites to switch gp_tool to tools that are very unlikely to be found, ie. dumpbin on Apple and otool on Windows/Unix.
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r--Tests/CMakeTests/GetPrerequisitesTest.cmake.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/CMakeTests/GetPrerequisitesTest.cmake.in b/Tests/CMakeTests/GetPrerequisitesTest.cmake.in
index 182c223..daf467b 100644
--- a/Tests/CMakeTests/GetPrerequisitesTest.cmake.in
+++ b/Tests/CMakeTests/GetPrerequisitesTest.cmake.in
@@ -121,11 +121,11 @@ message(STATUS "")
message(STATUS "=============================================================================")
message(STATUS "Test overriding 'gp_tool' with value unlikely to be found")
message(STATUS "")
-if(WIN32 OR APPLE)
- set(gp_tool "ldd")
-else(WIN32 OR APPLE)
+if(APPLE)
+ set(gp_tool "dumpbin")
+else()
set(gp_tool "otool")
-endif(WIN32 OR APPLE)
+endif()
set(gp_cmd "gp_cmd-NOTFOUND")
list_prerequisites("${CMAKE_COMMAND}" 0 0 0)
set(gp_cmd)