Merge branch 'allow_upper_case_cpp_and_others' into resolve/fix_target_name_with_dot_vs10/allow_upper_case_cpp_and_others
Conflicts: Tests/CxxOnly/CMakeLists.txt
This commit is contained in:
commit
eccc7d5d26
|
@ -2,7 +2,10 @@
|
||||||
project (CxxOnly CXX)
|
project (CxxOnly CXX)
|
||||||
|
|
||||||
set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
|
set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
|
||||||
add_library(testcxx1.my STATIC libcxx1.cxx test.CPP)
|
if(WIN32)
|
||||||
|
set(EXTRA_SRCS test.CPP)
|
||||||
|
endif()
|
||||||
|
add_library(testcxx1.my STATIC libcxx1.cxx ${EXTRA_SRCS})
|
||||||
add_library(testcxx2 SHARED libcxx2.cxx)
|
add_library(testcxx2 SHARED libcxx2.cxx)
|
||||||
add_executable (CxxOnly cxxonly.cxx)
|
add_executable (CxxOnly cxxonly.cxx)
|
||||||
target_link_libraries(CxxOnly testcxx1.my testcxx2)
|
target_link_libraries(CxxOnly testcxx1.my testcxx2)
|
||||||
|
|
|
@ -1,12 +1,16 @@
|
||||||
#include "libcxx1.h"
|
#include "libcxx1.h"
|
||||||
#include "libcxx2.h"
|
#include "libcxx2.h"
|
||||||
|
#ifdef _MSC_VER
|
||||||
extern int testCPP;
|
extern int testCPP;
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
|
#ifdef _MSC_VER
|
||||||
testCPP = 1;
|
testCPP = 1;
|
||||||
|
#endif
|
||||||
if ( LibCxx1Class::Method() != 2.0 )
|
if ( LibCxx1Class::Method() != 2.0 )
|
||||||
{
|
{
|
||||||
printf("Problem with libcxx1\n");
|
printf("Problem with libcxx1\n");
|
||||||
|
|
Loading…
Reference in New Issue