diff options
author | Brad King <brad.king@kitware.com> | 2008-08-18 15:39:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-08-18 15:39:22 (GMT) |
commit | 061d20be3869d53e0dee4c72b4f9e0202fe6b197 (patch) | |
tree | e3b1e82517d89a5795e6d1927e49de21d0294983 /Source/cmAddLibraryCommand.h | |
parent | 0bf093fd172951a8da7fc892da95c5c37a3354e2 (diff) | |
download | CMake-061d20be3869d53e0dee4c72b4f9e0202fe6b197.zip CMake-061d20be3869d53e0dee4c72b4f9e0202fe6b197.tar.gz CMake-061d20be3869d53e0dee4c72b4f9e0202fe6b197.tar.bz2 |
ENH: Add UNKNOWN type for IMPORTED libraries
When creating an IMPORTED target for a library that has been found on
disk, it may not be known whether the library is STATIC or SHARED.
However, the library may still be linked using the file found from disk.
Use of an IMPORTED target is still important to allow per-configuration
files to be specified for the library.
This change creates an UNKNOWN type for IMPORTED library targets. The
IMPORTED_LOCATION property (and its per-config equivalents) specifies
the location of the library. CMake makes no assumptions about the
library that cannot be inferred from the file on disk. This will help
projects and find-modules import targets found on disk or specified by
the user.
Diffstat (limited to 'Source/cmAddLibraryCommand.h')
-rw-r--r-- | Source/cmAddLibraryCommand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAddLibraryCommand.h b/Source/cmAddLibraryCommand.h index ad23ffc..6cad681 100644 --- a/Source/cmAddLibraryCommand.h +++ b/Source/cmAddLibraryCommand.h @@ -100,7 +100,7 @@ public: "\n" "The add_library command can also create IMPORTED library " "targets using this signature:\n" - " add_library(<name> <SHARED|STATIC|MODULE> IMPORTED)\n" + " add_library(<name> <SHARED|STATIC|MODULE|UNKNOWN> IMPORTED)\n" "An IMPORTED library target references a library file located " "outside the project. " "No rules are generated to build it. " |