Add per-lang variants of CMAKE_LINK_LIBRARY_{FILE_FLAG,SUFFIX}

Extend the change from commit 689be6235e (Generator: support
per-language link library flag, 2019-08-08) to cover more link library
command-line flag components.  Allow compilers for different languages
to use different values for these linking-related variables within the
same build.

Closes: #19631
This commit is contained in:
Alan W. Irwin
2019-08-24 12:44:36 -07:00
committed by Brad King
parent 843ab7544e
commit 79b2824251
5 changed files with 36 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
CMAKE_<LANG>_LINK_LIBRARY_FILE_FLAG
-----------------------------------
Language-specific flag to be used to link a library specified by
a path to its file.
The flag will be used before a library file path is given to the
linker. This is needed only on very few platforms.

View File

@@ -0,0 +1,6 @@
CMAKE_<LANG>_LINK_LIBRARY_SUFFIX
--------------------------------
Language-specific suffix for libraries that you link to.
The suffix to use for the end of a library filename, ``.lib`` on Windows.