https://github.com/Kitware/CMake
Raw File
Tip revision: 344f9ed96a4cc457810ca84cf6549f7a4218fd8a authored by Brad King on 05 June 2017, 14:32:40 UTC
CMake 3.9.0-rc1 version update
Tip revision: 344f9ed
bar.cpp

#ifdef FOO_LIBRARY
#error Unexpected FOO_LIBRARY
#endif

#ifdef BAR_USE_BANG
#ifndef BANG_LIBRARY
#error Expected BANG_LIBRARY
#endif
#include "bang.h"
#else
#ifdef BANG_LIBRARY
#error Unexpected BANG_LIBRARY
#endif
#endif

#include "bar.h"

int bar()
{
#ifdef BAR_USE_BANG
  return bang();
#else
  return 0;
#endif
}
back to top