https://github.com/Kitware/CMake
Raw File
Tip revision: e66fe75792a2fbe9f3ffe237c748008906ae7116 authored by Brad King on 17 June 2020, 13:58:40 UTC
CMake 3.18.0-rc2
Tip revision: e66fe75
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