https://github.com/Kitware/CMake
Raw File
Tip revision: bc4b6aa68dd48ffd567ae7a24abd8911a689c38a authored by Brad King on 02 November 2015, 14:12:44 UTC
CMake 3.4.0-rc3
Tip revision: bc4b6aa
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