https://github.com/Kitware/CMake
Revision b759fa9b8e2fa8ac93e4b57a0e09fcdc5e0e50af authored by Radek Nadstawny on 10 March 2019, 18:40:55 UTC, committed by Radek Nadstawny on 13 March 2019, 22:42:44 UTC
1 parent 5c106bf
Raw File
Tip revision: b759fa9b8e2fa8ac93e4b57a0e09fcdc5e0e50af authored by Radek Nadstawny on 10 March 2019, 18:40:55 UTC
FindPkgConfig: Set linker flags on imported targets
Tip revision: b759fa9
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