diff options
author | Brad King <brad.king@kitware.com> | 2012-09-24 15:05:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-25 21:08:08 (GMT) |
commit | 66759eea5e90d4af96fd79e2e9017cb2141f5415 (patch) | |
tree | 3660641b55e540e5030801888a02a355bd94b323 /Tests | |
parent | 9cb68b1cd408165d00449c2fed80f2f156d2b80b (diff) | |
download | CMake-66759eea5e90d4af96fd79e2e9017cb2141f5415.zip CMake-66759eea5e90d4af96fd79e2e9017cb2141f5415.tar.gz CMake-66759eea5e90d4af96fd79e2e9017cb2141f5415.tar.bz2 |
find_library: Optionally consider all names in each directory
When more than one value is given to the NAMES option this command by
default will consider one name at a time and search every directory for
it. Add a NAMES_PER_DIR option to tell this command to consider one
directory at a time and search for all names in it.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeOnly/find_library/A/libtestA.a | 0 | ||||
-rw-r--r-- | Tests/CMakeOnly/find_library/B/libtestB.a | 0 | ||||
-rw-r--r-- | Tests/CMakeOnly/find_library/CMakeLists.txt | 13 |
3 files changed, 13 insertions, 0 deletions
diff --git a/Tests/CMakeOnly/find_library/A/libtestA.a b/Tests/CMakeOnly/find_library/A/libtestA.a new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Tests/CMakeOnly/find_library/A/libtestA.a diff --git a/Tests/CMakeOnly/find_library/B/libtestB.a b/Tests/CMakeOnly/find_library/B/libtestB.a new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Tests/CMakeOnly/find_library/B/libtestB.a diff --git a/Tests/CMakeOnly/find_library/CMakeLists.txt b/Tests/CMakeOnly/find_library/CMakeLists.txt index 9120f69..2d4ecaf 100644 --- a/Tests/CMakeOnly/find_library/CMakeLists.txt +++ b/Tests/CMakeOnly/find_library/CMakeLists.txt @@ -59,3 +59,16 @@ foreach(lib64 ) test_find_library_subst(${lib64}) endforeach() + +test_find_library("" A/libtestA.a + NAMES testA testB + PATHS ${CMAKE_CURRENT_SOURCE_DIR}/A ${CMAKE_CURRENT_SOURCE_DIR}/B + ) +test_find_library("" B/libtestB.a + NAMES testB testA + PATHS ${CMAKE_CURRENT_SOURCE_DIR}/A ${CMAKE_CURRENT_SOURCE_DIR}/B + ) +test_find_library("" A/libtestA.a + NAMES testB testA NAMES_PER_DIR + PATHS ${CMAKE_CURRENT_SOURCE_DIR}/A ${CMAKE_CURRENT_SOURCE_DIR}/B + ) |