https://github.com/Kitware/CMake
Raw File
Tip revision: ebea30a1edced8d74c42b35c129a3f32d553115c authored by Brad King on 04 February 2020, 14:02:13 UTC
CMake 3.15.7
Tip revision: ebea30a
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