diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2010-09-06 16:43:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2010-09-06 16:43:57 (GMT) |
commit | ba0a8905395ec7e616bbedee33a83fcf15a86910 (patch) | |
tree | 5b49f021a56bb58bbfdc6a58af6e43c99303d0e1 /Tests/CxxOnly/cxxonly.cxx | |
parent | d26cd46989b4e1170cbebc97ae3b6b30395158db (diff) | |
download | CMake-ba0a8905395ec7e616bbedee33a83fcf15a86910.zip CMake-ba0a8905395ec7e616bbedee33a83fcf15a86910.tar.gz CMake-ba0a8905395ec7e616bbedee33a83fcf15a86910.tar.bz2 |
Only test for .CPP on Microsoft compilers which will handle .CPP as c++.
Diffstat (limited to 'Tests/CxxOnly/cxxonly.cxx')
-rw-r--r-- | Tests/CxxOnly/cxxonly.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CxxOnly/cxxonly.cxx b/Tests/CxxOnly/cxxonly.cxx index bd4fd59..9cf6f2d 100644 --- a/Tests/CxxOnly/cxxonly.cxx +++ b/Tests/CxxOnly/cxxonly.cxx @@ -1,12 +1,16 @@ #include "libcxx1.h" #include "libcxx2.h" +#ifdef _MSC_VER extern int testCPP; +#endif #include <stdio.h> int main () { +#ifdef _MSC_VER testCPP = 1; +#endif if ( LibCxx1Class::Method() != 2.0 ) { printf("Problem with libcxx1\n"); |