From 0a10958a88910726b11d041ef96ef3b5b8c6c70a Mon Sep 17 00:00:00 2001 From: Brad King Date: Sat, 30 Aug 2008 10:32:52 -0400 Subject: 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. --- Tests/Unset/CMakeLists.txt | 5 +++-- Tests/Unset/unset.c | 4 ++++ Tests/Unset/unset.cc | 4 ---- 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 Tests/Unset/unset.c delete mode 100644 Tests/Unset/unset.cc 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.c b/Tests/Unset/unset.c new file mode 100644 index 0000000..f8b643a --- /dev/null +++ b/Tests/Unset/unset.c @@ -0,0 +1,4 @@ +int main() +{ + return 0; +} diff --git a/Tests/Unset/unset.cc b/Tests/Unset/unset.cc deleted file mode 100644 index f8b643a..0000000 --- a/Tests/Unset/unset.cc +++ /dev/null @@ -1,4 +0,0 @@ -int main() -{ - return 0; -} -- cgit v0.12