cmDocumentLocationUndefined.h 1.1 KB

123456789101112131415161718192021222324
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2011 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmDocumentLocationUndefined_h
  11. #define cmDocumentLocationUndefined_h
  12. #define CM_LOCATION_UNDEFINED_BEHAVIOR(action) \
  13. "\n" \
  14. "Do not set properties that affect the location of a target after " \
  15. action ". These include properties whose names match " \
  16. "\"(RUNTIME|LIBRARY|ARCHIVE)_OUTPUT_(NAME|DIRECTORY)(_<CONFIG>)?\", " \
  17. "\"(IMPLIB_)?(PREFIX|SUFFIX)\", or \"LINKER_LANGUAGE\". " \
  18. "Failure to follow this rule is not diagnosed and leaves the location " \
  19. "of the target undefined."
  20. #endif