summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-11 18:35:39 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-11 18:35:39 (GMT)
commitac0e58dcfbf17dec84b7bd848f6df0175f7d516b (patch)
treefd1cbb7b8fb4d6cec4fa467ea1e174b2b8535146 /Source/cmTarget.cxx
parent739a463539946323b09e4c22f5fdd38395add1e1 (diff)
downloadCMake-ac0e58dcfbf17dec84b7bd848f6df0175f7d516b.zip
CMake-ac0e58dcfbf17dec84b7bd848f6df0175f7d516b.tar.gz
CMake-ac0e58dcfbf17dec84b7bd848f6df0175f7d516b.tar.bz2
ENH: Enforce global target name uniqueness.
- Error if imported target is involved in conflict - Error for non-imported target conflict unless CMAKE_BACKWARDS_COMPATIBILITY <= 2.4 - Include OUTPUT_NAME property in error message - Update add_executable and add_library command documentation
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx19
1 files changed, 15 insertions, 4 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index ace3d6f..c043ece 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -496,10 +496,21 @@ void cmTarget::DefineProperties(cmake *cm)
cm->DefineProperty
("WIN32_EXECUTABLE", cmProperty::TARGET,
- "Used to specify Windows executable with a WinMain entry point.",
- "This can be set to indicate that a target is a Windows executable "
- "in contrast to a console application for example. This changes "
- "how the executable will be linked.");
+ "Build an executable with a WinMain entry point on windows.",
+ "When this property is set to true the executable when linked "
+ "on Windows will be created with a WinMain() entry point instead "
+ "of of just main()."
+ "This makes it a GUI executable instead of a console application. "
+ "See the CMAKE_MFC_FLAG variable documentation to configure use "
+ "of MFC for WinMain executables.");
+
+ cm->DefineProperty
+ ("MACOSX_BUNDLE", cmProperty::TARGET,
+ "Build an executable as an application bundle on Mac OS X.",
+ "When this property is set to true the executable when built "
+ "on Mac OS X will be created as an application bundle. "
+ "This makes it a GUI executable that can be launched from "
+ "the Finder.");
cm->DefineProperty
("ENABLE_EXPORTS", cmProperty::TARGET,