Browse Source

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.
Brad King 17 years ago
parent
commit
0a10958a88
2 changed files with 3 additions and 2 deletions
  1. 3 2
      Tests/Unset/CMakeLists.txt
  2. 0 0
      Tests/Unset/unset.c

+ 3 - 2
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)

+ 0 - 0
Tests/Unset/unset.cc → Tests/Unset/unset.c