aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-09-22 12:09:46 +0200
committerRiccardo Spagni <ric@spagni.net>2014-09-22 12:09:46 +0200
commitca569549ec56ec91d76f0667c563fc395d026cf4 (patch)
tree0a912d8b2b6404c35004ba654db84ea8d9f36e91 /CMakeLists.txt
parentfixed miniupnpc static building (diff)
downloadmonero-ca569549ec56ec91d76f0667c563fc395d026cf4.tar.xz
added mikezackles' missing boost function in CMakeLists
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 593ef87d5..bf3b8cf18 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,6 +30,21 @@
cmake_minimum_required(VERSION 2.8.6)
+if (NOT DEFINED ENV{DEVELOPER_LOCAL_TOOLS})
+ message(STATUS "Could not find DEVELOPER_LOCAL_TOOLS in env")
+ set(BOOST_IGNORE_SYSTEM_PATHS_DEFAULT OFF)
+elseif ("$ENV{DEVELOPER_LOCAL_TOOLS}" EQUAL 1)
+ message(STATUS "found: env DEVELOPER_LOCAL_TOOLS = 1")
+ set(BOOST_IGNORE_SYSTEM_PATHS_DEFAULT ON)
+ option(BOOST_IGNORE_SYSTEM_PATHS "Ignore boost system paths for local boost installation" ON)
+else()
+ message(STATUS "found: env DEVELOPER_LOCAL_TOOLS = 0")
+ set(BOOST_IGNORE_SYSTEM_PATHS_DEFAULT OFF)
+endif()
+message(STATUS "BOOST_IGNORE_SYSTEM_PATHS defaults to ${BOOST_IGNORE_SYSTEM_PATHS_DEFAULT}")
+option(BOOST_IGNORE_SYSTEM_PATHS "Ignore boost system paths for local boost ins tallation" $BOOST_IGNORE_SYSTEM_PATHS_DEFAULT)
+
+
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release")
enable_testing()