summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorPhilip Lowman <philip@yhbt.com>2010-10-11 22:48:33 -0400
committerPhilip Lowman <philip@yhbt.com>2010-10-11 22:48:33 -0400
commitb867a3f1a81b2dcb399a3e39ea8b9454d8f0508f (patch)
tree9b1a323375af91875edbc7bd1829f51523cff123 /Modules
parent3138cc503b3645a44f9457915d6987b96b828982 (diff)
downloadcmake-b867a3f1a81b2dcb399a3e39ea8b9454d8f0508f.tar.gz
Remove superfluous variable Boost_COMPAT_STATIC_RUNTIME.
There is no need to introduce this extra variable as FindBoost can simply rely on if Boost_USE_STATIC_RUNTIME is defined or not to disable the old searching behavior for static runtime libraries on WIN32.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake25
1 files changed, 8 insertions, 17 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 2377e10774..3ae4e1410b 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -20,7 +20,6 @@
# set(Boost_USE_STATIC_LIBS ON)
# set(Boost_USE_MULTITHREADED ON)
# set(Boost_USE_STATIC_RUNTIME OFF)
-# set(Boost_COMPAT_STATIC_RUNTIME OFF)
# find_package( Boost 1.36.0 COMPONENTS date_time filesystem system ... )
#
# if(Boost_FOUND)
@@ -94,7 +93,10 @@
#
# Boost_USE_STATIC_RUNTIME If enabled, searches for boost libraries
# linked against a static C++ standard library
-# ('s' ABI tag). Defaults to OFF.
+# ('s' ABI tag). This option should be set to
+# ON or OFF because the default behavior
+# if not specified is platform dependent
+# for backwards compatibility.
# [Since CMake 2.8.3]
#
# Boost_USE_DEBUG_PYTHON If enabled, searches for boost libraries
@@ -114,14 +116,6 @@
# Defaults to OFF.
# [Since CMake 2.8.3]
#
-# Boost_COMPAT_STATIC_RUNTIME Set to OFF to disable backwards compatible
-# searching for libraries with the 's' ABI
-# tag on WIN32 after normal searches. You
-# should set this to OFF and also set
-# Boost_USE_STATIC_RUNTIME appropriately.
-# If not specified, defaults to ON.
-# [Since CMake 2.8.3]
-#
# Other Variables used by this module which you may want to set.
#
# Boost_ADDITIONAL_VERSIONS A list of version numbers to use for searching
@@ -372,9 +366,6 @@ endfunction()
IF(NOT DEFINED Boost_USE_MULTITHREADED)
SET(Boost_USE_MULTITHREADED TRUE)
ENDIF()
-if(NOT DEFINED Boost_COMPAT_STATIC_RUNTIME)
- set(Boost_COMPAT_STATIC_RUNTIME TRUE)
-endif()
if(Boost_FIND_VERSION_EXACT)
# The version may appear in a directory with or without the patch
@@ -868,11 +859,11 @@ ELSE (_boost_IN_CACHE)
# 1. Search for static libs compiled against a SHARED C++ standard runtime library (use if found)
# 2. Search for static libs compiled against a STATIC C++ standard runtime library (use if found)
# We maintain this behavior since changing it could break people's builds.
- # To disable the ambiguous behavior, the user can
- # set Boost_COMPAT_STATIC_RUNTIME to FALSE
+ # To disable the ambiguous behavior, the user need only
+ # set Boost_USE_STATIC_RUNTIME either ON or OFF.
set(_boost_STATIC_RUNTIME_WORKAROUND false)
- if(Boost_COMPAT_STATIC_RUNTIME AND WIN32 AND Boost_USE_STATIC_LIBS)
- if(NOT Boost_USE_STATIC_RUNTIME)
+ if(WIN32 AND Boost_USE_STATIC_LIBS)
+ if(NOT DEFINED Boost_USE_STATIC_RUNTIME)
set(_boost_STATIC_RUNTIME_WORKAROUND true)
endif()
endif()