forked from STEllAR-GROUP/hpx
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ABresting
committed
Jun 30, 2017
1 parent
16e3cb7
commit 1658057
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright (c) 2014 Thomas Heller | ||
# Copyright (c) 2007-2012 Hartmut Kaiser | ||
# Copyright (c) 2010-2011 Matt Anderson | ||
# Copyright (c) 2011 Bryce Lelbach | ||
# Copyright (c) 2017 Abhimanyu Rawat | ||
# Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
find_package(PkgConfig QUIET) | ||
pkg_check_modules(PC_LIBSIGSEGV QUIET libsigsegv) | ||
|
||
find_path(LIBSIGSEGV_INCLUDE_DIR sigsegv.h | ||
HINTS | ||
${LIBSIGSEGV_ROOT} ENV LIBSIGSEGV_ROOT | ||
${PC_LIBSIGSEGV_MINIMAL_INCLUDEDIR} | ||
${PC_LIBSIGSEGV_MINIMAL_INCLUDE_DIRS} | ||
${PC_LIBSIGSEGV_INCLUDEDIR} | ||
${PC_LIBSIGSEGV_INCLUDE_DIRS} | ||
PATH_SUFFIXES include) | ||
|
||
find_library(LIBSIGSEGV_LIBRARY NAMES sigsegv libsigsegv | ||
HINTS | ||
${LIBSIGSEGV_ROOT} ENV LIBSIGSEGV_ROOT | ||
${PC_LIBSIGSEGV_MINIMAL_LIBDIR} | ||
${PC_LIBSIGSEGV_MINIMAL_LIBRARY_DIRS} | ||
${PC_LIBSIGSEGV_LIBDIR} | ||
${PC_LIBSIGSEGV_LIBRARY_DIRS} | ||
PATH_SUFFIXES lib lib64) | ||
|
||
set(LIBSIGSEGV_LIBRARIES ${LIBSIGSEGV_LIBRARY}) | ||
set(LIBSIGSEGV_INCLUDE_DIRS ${LIBSIGSEGV_INCLUDE_DIR}) | ||
|
||
find_package_handle_standard_args(LibSigSegv DEFAULT_MSG | ||
LIBSIGSEGV_LIBRARY LIBSIGSEGV_INCLUDE_DIR) | ||
|
||
get_property(_type CACHE LIBSIGSEGV_ROOT PROPERTY TYPE) | ||
if(_type) | ||
set_property(CACHE HWLOC_ROOT PROPERTY ADVANCED 1) | ||
if("x${_type}" STREQUAL "xUNINITIALIZED") | ||
set_property(CACHE LIBSIGSEGV_ROOT PROPERTY TYPE PATH) | ||
endif() | ||
endif() | ||
|
||
mark_as_advanced(LIBSIGSEGV_ROOT LIBSIGSEGV_LIBRARY LIBSIGSEGV_INCLUDE_DIR) |