diff options
author | Brad King <brad.king@kitware.com> | 2011-12-01 20:41:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-12-01 20:58:47 (GMT) |
commit | 363d3962c476a6018c0be9fde18f347816034b97 (patch) | |
tree | 809de12ad3874414353b18a396db8120976962b4 /Source/cmDocumentLocationUndefined.h | |
parent | 9401da808446b1746c75e81b9b6056b96a122fe9 (diff) | |
download | CMake-363d3962c476a6018c0be9fde18f347816034b97.zip CMake-363d3962c476a6018c0be9fde18f347816034b97.tar.gz CMake-363d3962c476a6018c0be9fde18f347816034b97.tar.bz2 |
Factor out target location undefined behavior helper macro
Move CM_LOCATION_UNDEFINED_BEHAVIOR into a dedicated header. Add a
parameter to describe the action that leads to the undefined target
location.
Diffstat (limited to 'Source/cmDocumentLocationUndefined.h')
-rw-r--r-- | Source/cmDocumentLocationUndefined.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/cmDocumentLocationUndefined.h b/Source/cmDocumentLocationUndefined.h new file mode 100644 index 0000000..d1be77a --- /dev/null +++ b/Source/cmDocumentLocationUndefined.h @@ -0,0 +1,24 @@ +/*============================================================================ + CMake - Cross Platform Makefile Generator + Copyright 2000-2011 Kitware, Inc., Insight Software Consortium + + Distributed under the OSI-approved BSD License (the "License"); + see accompanying file Copyright.txt for details. + + This software is distributed WITHOUT ANY WARRANTY; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License for more information. +============================================================================*/ +#ifndef cmDocumentLocationUndefined_h +#define cmDocumentLocationUndefined_h + +#define CM_LOCATION_UNDEFINED_BEHAVIOR(action) \ + "\n" \ + "Do not set properties that affect the location of a target after " \ + action ". These include properties whose names match " \ + "\"(RUNTIME|LIBRARY|ARCHIVE)_OUTPUT_(NAME|DIRECTORY)(_<CONFIG>)?\" " \ + "or \"(IMPLIB_)?(PREFIX|SUFFIX)\". " \ + "Failure to follow this rule is not diagnosed and leaves the location " \ + "of the target undefined." + +#endif |