diff options
author | Brad King <brad.king@kitware.com> | 2008-08-30 14:32:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-08-30 14:32:52 (GMT) |
commit | 0a10958a88910726b11d041ef96ef3b5b8c6c70a (patch) | |
tree | 91041d343af9f13a4958f23575d9c4c5d2c82f2e /Tests | |
parent | 87a31b5b7f6bfb5f7dde1284b4c35539fa432a90 (diff) | |
download | CMake-0a10958a88910726b11d041ef96ef3b5b8c6c70a.zip CMake-0a10958a88910726b11d041ef96ef3b5b8c6c70a.tar.gz CMake-0a10958a88910726b11d041ef96ef3b5b8c6c70a.tar.bz2 |
BUG: Fix Unset test on VS 6
Visual Studio 6 does not recognize .cc as a C++ extension by default.
Simplify the test to be C-only and use a .c extension.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Unset/CMakeLists.txt | 5 | ||||
-rw-r--r-- | Tests/Unset/unset.c (renamed from Tests/Unset/unset.cc) | 0 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Tests/Unset/CMakeLists.txt b/Tests/Unset/CMakeLists.txt index 6260950..05a7e03 100644 --- a/Tests/Unset/CMakeLists.txt +++ b/Tests/Unset/CMakeLists.txt @@ -1,4 +1,5 @@ -project(Unset) +cmake_minimum_required(VERSION 2.6) +project(Unset C) # Local variable set(x 42) @@ -37,4 +38,4 @@ if(DEFINED BAR) endif(DEFINED BAR) -add_executable(Unset unset.cc) +add_executable(Unset unset.c) diff --git a/Tests/Unset/unset.cc b/Tests/Unset/unset.c index f8b643a..f8b643a 100644 --- a/Tests/Unset/unset.cc +++ b/Tests/Unset/unset.c |