https://github.com/Kitware/CMake
Raw File
Tip revision: 512ab500f06d6c645985cc8014c5e6291b9a059f authored by Brad King on 19 December 2019, 14:54:31 UTC
CMake 3.16.2
Tip revision: 512ab50
cxxonly.cxx
#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");
    return 1;
  }
  if (LibCxx2Class::Method() != 1.0) {
    printf("Problem with libcxx2\n");
    return 1;
  }
  return 0;
}
back to top