summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-08-03 17:51:24 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-08-03 17:51:24 (GMT)
commitd1a25bd83645a55ee0c761238655de9a781ef036 (patch)
treea8cb0d9f8ba03fc91519c8ba2c9ca5dc7d3a3878 /Utilities
parent831492a9d750db8981f758e276c7f648a07c46a9 (diff)
downloadCMake-d1a25bd83645a55ee0c761238655de9a781ef036.zip
CMake-d1a25bd83645a55ee0c761238655de9a781ef036.tar.gz
CMake-d1a25bd83645a55ee0c761238655de9a781ef036.tar.bz2
ENH: use try run source
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmtar/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/Utilities/cmtar/CMakeLists.txt b/Utilities/cmtar/CMakeLists.txt
index f3fed3f..5a55c81 100644
--- a/Utilities/cmtar/CMakeLists.txt
+++ b/Utilities/cmtar/CMakeLists.txt
@@ -245,10 +245,14 @@ ENDFOREACH(FILE)
SET(CMAKE_MAKEDEV_SOURCE
"${CMAKE_MAKEDEV_SOURCE}
int main ()
-{
+{
dev_t maj = 5;
dev_t min = 7;
- makedev(0, maj, min);
+ dev_t dev;
+
+ dev = makedev(0, maj, min);
+ if(major(dev) != maj || minor(dev) != min)
+ exit(1);
return 0;
}
")