summaryrefslogtreecommitdiffstats
path: root/Source/cmAddLibraryCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-01-04 14:38:22 (GMT)
committerBrad King <brad.king@kitware.com>2013-01-04 14:38:22 (GMT)
commit51988a4f91c6c6a4b91eedfb5010fdbc57b71891 (patch)
treea93a7846eb85c429fe2f3354bfc8fc3a67398d8c /Source/cmAddLibraryCommand.h
parent2c4969a131fbdd949cac02520133b2c865b9fd78 (diff)
downloadCMake-51988a4f91c6c6a4b91eedfb5010fdbc57b71891.zip
CMake-51988a4f91c6c6a4b91eedfb5010fdbc57b71891.tar.gz
CMake-51988a4f91c6c6a4b91eedfb5010fdbc57b71891.tar.bz2
add_library: Document object library portability suggestion
Xcode and VS <= 7.1 will not build targets that have no source files besides $<TARGET_OBJECTS:...>. Suggest in the documentation that projects always add at least one real source file.
Diffstat (limited to 'Source/cmAddLibraryCommand.h')
-rw-r--r--Source/cmAddLibraryCommand.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmAddLibraryCommand.h b/Source/cmAddLibraryCommand.h
index c144565..e5f27cb 100644
--- a/Source/cmAddLibraryCommand.h
+++ b/Source/cmAddLibraryCommand.h
@@ -134,6 +134,10 @@ public:
"They may contain custom commands generating such sources, but not "
"PRE_BUILD, PRE_LINK, or POST_BUILD commands. "
"Object libraries cannot be imported, exported, installed, or linked."
+ " "
+ "Some native build systems may not like targets that have only "
+ "object files, so consider adding at least one real source file "
+ "to any target that references $<TARGET_OBJECTS:objlib>."
;
}