summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2011-06-01 16:53:06 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2011-06-01 16:53:06 (GMT)
commitf3de459cec78eac3a7081379b6ee9c6cde36bb60 (patch)
treedb53322b97661978068a41fc54e4bcdbb631d829 /Tests
parent900bf98d0103567aa51f0d1d2fc0f5d5eb67c124 (diff)
downloadCMake-f3de459cec78eac3a7081379b6ee9c6cde36bb60.zip
CMake-f3de459cec78eac3a7081379b6ee9c6cde36bb60.tar.gz
CMake-f3de459cec78eac3a7081379b6ee9c6cde36bb60.tar.bz2
BundleUtilities: Run test on Windows if either MSVC or dumpbin was found.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index d840b96..be0b3f9 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -195,7 +195,9 @@ IF(BUILD_TESTING)
# run test for BundleUtilities on supported platforms/compilers
- if(MSVC OR
+ find_program(DUMPBIN_EXECUTABLE NAMES dumpbin)
+ mark_as_advanced(DUMPBIN_EXECUTABLE)
+ if(MSVC OR DUMPBIN_EXECUTABLE OR
CMAKE_SYSTEM_NAME MATCHES "Linux" OR
CMAKE_SYSTEM_NAME MATCHES "Darwin")
ADD_TEST(BundleUtilities ${CMAKE_CTEST_COMMAND}
@@ -207,7 +209,7 @@ IF(BUILD_TESTING)
--build-project BundleUtilities
)
LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/BundleUtilities")
- endif(MSVC OR
+ endif(MSVC OR DUMPBIN_EXECUTABLE OR
CMAKE_SYSTEM_NAME MATCHES "Linux" OR
CMAKE_SYSTEM_NAME MATCHES "Darwin")