mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
CMake: clean up hints for finding libraries
HINTS should be dynamically introspected, static entries should be in PATHS. There is also a platform dependent list of things where CMake always looks if not explicitely forbidden, so remove any entries that are usually in those default lists. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
parent
c1f88ddd69
commit
3b3306c552
2 changed files with 2 additions and 8 deletions
|
@ -18,8 +18,6 @@ NAMES git2.h
|
|||
HINTS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../install-root/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../libgit2/include
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
)
|
||||
|
||||
IF ( LIBGIT2_DYNAMIC )
|
||||
|
@ -34,8 +32,6 @@ NAMES
|
|||
HINTS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../install-root/lib
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../libgit2/build
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
SET(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES})
|
||||
|
|
|
@ -20,8 +20,7 @@ NAMES
|
|||
HINTS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../install-root/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../libdivecomputer/include/
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
PATHS
|
||||
/opt/out/include
|
||||
)
|
||||
|
||||
|
@ -32,8 +31,7 @@ NAMES
|
|||
HINTS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../install-root/lib
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../libdivecomputer/src/.libs/
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
PATHS
|
||||
/opt/out/lib
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue