forked from OpenMS/OpenMS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_lib_find_paths.cmake
More file actions
31 lines (27 loc) · 1.58 KB
/
setup_lib_find_paths.cmake
File metadata and controls
31 lines (27 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
# SPDX-License-Identifier: BSD-3-Clause
#
# --------------------------------------------------------------------------
# $Maintainer: Stephan Aiche, Chris Bielow $
# $Authors: Chris Bielow, Stephan Aiche $
# --------------------------------------------------------------------------
#------------------------------------------------------------------------------
# This cmake file only handles the customization of internal path variables
# where the build system expects to find external libraries. Note that the
# actual libraries are found in the CMake files of the individual componenents.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Specify the path to the contrib-build. Will be added to CMAKE_PREFIX_PATH
# for searching and as first entry in the includes/libraries to avoid
# mismatches with installed system libraries
if(NOT OPENMS_CONTRIB_LIBS)
message("Note: OPENMS_CONTRIB_LIBS not set. Unless you are certain that you have all contributing libraries in system paths, please specify an explicit path to the built contrib libraries via
-DOPENMS_CONTRIB_LIBS")
else()
list(INSERT CMAKE_PREFIX_PATH 0 ${OPENMS_CONTRIB_LIBS})
list(REMOVE_DUPLICATES CMAKE_PREFIX_PATH)
list(REMOVE_ITEM CMAKE_PREFIX_PATH "") # Remove empty entries
endif()
#------------------------------------------------------------------------------
# Ensure Qt includes it's libs as SYSTEM
set(QT_INCLUDE_DIRS_NO_SYSTEM Off)