diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-08-08 16:31:42 (GMT) |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-08-09 15:16:29 (GMT) |
commit | 689be6235e5be32e8ee8e37801dde1fb1c5add2a (patch) | |
tree | c4d901a70e328d716bb2fc99dfa8e09e40980f08 /Help/variable | |
parent | 1996e0157826903f27f73825a01f83d53dc8fba4 (diff) | |
download | CMake-689be6235e5be32e8ee8e37801dde1fb1c5add2a.zip CMake-689be6235e5be32e8ee8e37801dde1fb1c5add2a.tar.gz CMake-689be6235e5be32e8ee8e37801dde1fb1c5add2a.tar.bz2 |
Generator: support per-language link library flag
This enables the use of MSVC and Swift on Windows in a single project.
MSVC uses no flag to indicate linked libraries while Swift uses `-l`.
Add support for a language specific link library flag which takes
precedence over the global `CMAKE_LINK_LIBRARY_FLAG` which preserves
compatibility with earlier releases.
Diffstat (limited to 'Help/variable')
-rw-r--r-- | Help/variable/CMAKE_LANG_LINK_LIBRARY_FLAG.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_LANG_LINK_LIBRARY_FLAG.rst b/Help/variable/CMAKE_LANG_LINK_LIBRARY_FLAG.rst new file mode 100644 index 0000000..d7bb0d8 --- /dev/null +++ b/Help/variable/CMAKE_LANG_LINK_LIBRARY_FLAG.rst @@ -0,0 +1,7 @@ +CMAKE_<LANG>_LINK_LIBRARY_FLAG +------------------------------ + +Flag to be used to link a library into a shared library or executable. + +This flag will be used to specify a library to link to a shared library or an +executable for the specific language. On most compilers this is ``-l``. |