diff options
author | Brad King <brad.king@kitware.com> | 2019-08-02 15:51:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-02 17:37:39 (GMT) |
commit | f6d6dbc2933248dc7f17fd033e2b70fb161fddbd (patch) | |
tree | 10c7806d7cd434d252e9f5d178a546de65d5fdaa /Modules/Platform/Windows-OpenWatcom.cmake | |
parent | 7bacf0233be03100b830e65cdd02a0d1fb2c2a13 (diff) | |
download | CMake-f6d6dbc2933248dc7f17fd033e2b70fb161fddbd.zip CMake-f6d6dbc2933248dc7f17fd033e2b70fb161fddbd.tar.gz CMake-f6d6dbc2933248dc7f17fd033e2b70fb161fddbd.tar.bz2 |
Make CMAKE_LINK_LIBRARY_FILE_FLAG work like CMAKE_LINK_LIBRARY_FLAG
The `CMAKE_LINK_LIBRARY_FILE_FLAG` variable is meant for linkers that
want library file paths to be preceded by a flag. This is used only
for OpenWatcom to add the `library` argument before library file paths.
Refactor the approach to treat `CMAKE_LINK_LIBRARY_FILE_FLAG` as a
command-line string fragment to add just before the library file path.
This has two advantages:
* `CMAKE_LINK_LIBRARY_FILE_FLAG` now works like `CMAKE_LINK_LIBRARY_FLAG`.
* `CMAKE_LINK_LIBRARY_FILE_FLAG` can now be an attached flag whose value
is the library file path.
Technically this is a change in behavior, but this setting was created
for internal use and should be rarely used outside of CMake itself.
Fixes: #19541
Diffstat (limited to 'Modules/Platform/Windows-OpenWatcom.cmake')
-rw-r--r-- | Modules/Platform/Windows-OpenWatcom.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-OpenWatcom.cmake b/Modules/Platform/Windows-OpenWatcom.cmake index d38d616..76cd28b 100644 --- a/Modules/Platform/Windows-OpenWatcom.cmake +++ b/Modules/Platform/Windows-OpenWatcom.cmake @@ -10,7 +10,7 @@ set(__WINDOWS_OPENWATCOM 1) set(CMAKE_LIBRARY_PATH_FLAG "libpath ") set(CMAKE_LINK_LIBRARY_FLAG "library ") -set(CMAKE_LINK_LIBRARY_FILE_FLAG "library") +set(CMAKE_LINK_LIBRARY_FILE_FLAG "library ") if(CMAKE_VERBOSE_MAKEFILE) set(CMAKE_WCL_QUIET) |