1
# - Try to find BoehmGC
2
# Once done this will define
4
# BOEHMGC_FOUND - system has BoehmGC
5
# BOEHMGC_INCLUDE_DIRS - the BoehmGC include directory
6
# BOEHMGC_LIBRARIES - Link these to use BoehmGC
7
# BOEHMGC_DEFINITIONS - Compiler switches required for using BoehmGC
9
# Copyright (c) 2008 Joshua L. Blocher <verbalshadow@gmail.com>
11
# Redistribution and use is allowed according to the terms of the New
13
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
17
if (BOEHMGC_LIBRARIES AND BOEHMGC_INCLUDE_DIRS)
19
set(BOEHMGC_FOUND TRUE)
20
else (BOEHMGC_LIBRARIES AND BOEHMGC_INCLUDE_DIRS)
21
find_path(BOEHMGC_INCLUDE_DIR
29
$ENV{DEVLIBS_PATH}//include//
34
find_library(GC_LIBRARY
48
set(BOEHMGC_INCLUDE_DIRS
49
${BOEHMGC_INCLUDE_DIR}
59
if (BOEHMGC_INCLUDE_DIRS AND BOEHMGC_LIBRARIES)
60
set(BOEHMGC_FOUND TRUE)
61
endif (BOEHMGC_INCLUDE_DIRS AND BOEHMGC_LIBRARIES)
64
if (NOT BoehmGC_FIND_QUIETLY)
65
message(STATUS "Found BoehmGC: ${BOEHMGC_LIBRARIES}")
66
endif (NOT BoehmGC_FIND_QUIETLY)
68
if (BoehmGC_FIND_REQUIRED)
69
message(FATAL_ERROR "Could not find BoehmGC")
70
endif (BoehmGC_FIND_REQUIRED)
73
# show the BOEHMGC_INCLUDE_DIRS and BOEHMGC_LIBRARIES variables only in the advanced view
74
mark_as_advanced(BOEHMGC_INCLUDE_DIRS BOEHMGC_LIBRARIES)
76
endif (BOEHMGC_LIBRARIES AND BOEHMGC_INCLUDE_DIRS)