diff options
author | Brad King <brad.king@kitware.com> | 2017-02-28 18:51:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-28 19:56:54 (GMT) |
commit | 6f5aede71642b05a351d5cf92e0c884ed9b4fd3c (patch) | |
tree | f1f5686398ea5829717832deb516b749bc685a7c /Tests/RunCMake/find_library/RunCMakeTest.cmake | |
parent | e67963ed7316768bf0ebfbe42137d028c0d1d2a4 (diff) | |
download | CMake-6f5aede71642b05a351d5cf92e0c884ed9b4fd3c.zip CMake-6f5aede71642b05a351d5cf92e0c884ed9b4fd3c.tar.gz CMake-6f5aede71642b05a351d5cf92e0c884ed9b4fd3c.tar.bz2 |
find_library: Skip 'lib => lib<arch>' searches if one symlinks the other
The `FIND_LIBRARY_USE_LIB<arch>_PATHS` global properties ask
`find_library` to look in `lib<arch>` directories automatically before
corresponding `lib` directories. However, if `lib<arch>` is just a
symlink to `lib` (or vice-versa) then we should skip adding the
`lib<arch>` path. Such symlinks typically only exist to satisfy
software that expects the `lib<arch>` path to be available.
Fixes: #16687
Diffstat (limited to 'Tests/RunCMake/find_library/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/find_library/RunCMakeTest.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_library/RunCMakeTest.cmake b/Tests/RunCMake/find_library/RunCMakeTest.cmake index 5733965..e7e8db3 100644 --- a/Tests/RunCMake/find_library/RunCMakeTest.cmake +++ b/Tests/RunCMake/find_library/RunCMakeTest.cmake @@ -1,6 +1,9 @@ include(RunCMake) run_cmake(Created) +if(CMAKE_HOST_UNIX) + run_cmake(LibArchLink) +endif() if(WIN32 OR CYGWIN) run_cmake(PrefixInPATH) endif() |