mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
Merge topic 'FindBoost-minor-cleanup'
08b9a0fdFindBoost: Simplify library dir detection with cascading if/elseif/elseca4029faFindBoost: Minor style updates2e242b5cFindBoost: Use list(INSERT) to simplify suffix list generation6699d46aFindBoost: Use string(APPEND) in more cases
This commit is contained in:
+11
-13
@@ -1313,13 +1313,13 @@ string(APPEND _boost_DEBUG_ABI_TAG "d")
|
||||
# p using the STLport standard library rather than the
|
||||
# default one supplied with your compiler
|
||||
if(Boost_USE_STLPORT)
|
||||
set( _boost_RELEASE_ABI_TAG "${_boost_RELEASE_ABI_TAG}p")
|
||||
set( _boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}p")
|
||||
string(APPEND _boost_RELEASE_ABI_TAG "p")
|
||||
string(APPEND _boost_DEBUG_ABI_TAG "p")
|
||||
endif()
|
||||
# n using the STLport deprecated "native iostreams" feature
|
||||
if(Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS)
|
||||
set( _boost_RELEASE_ABI_TAG "${_boost_RELEASE_ABI_TAG}n")
|
||||
set( _boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}n")
|
||||
string(APPEND _boost_RELEASE_ABI_TAG "n")
|
||||
string(APPEND _boost_DEBUG_ABI_TAG "n")
|
||||
endif()
|
||||
|
||||
if(Boost_DEBUG)
|
||||
@@ -1390,9 +1390,9 @@ endif()
|
||||
if( Boost_USE_STATIC_LIBS )
|
||||
set( _boost_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||
if(WIN32)
|
||||
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||
list(INSERT CMAKE_FIND_LIBRARY_SUFFIXES 0 .lib .a)
|
||||
else()
|
||||
set(CMAKE_FIND_LIBRARY_SUFFIXES .a )
|
||||
set(CMAKE_FIND_LIBRARY_SUFFIXES .a)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -1418,7 +1418,7 @@ endif()
|
||||
set(_boost_STATIC_RUNTIME_WORKAROUND false)
|
||||
if(WIN32 AND Boost_USE_STATIC_LIBS)
|
||||
if(NOT DEFINED Boost_USE_STATIC_RUNTIME)
|
||||
set(_boost_STATIC_RUNTIME_WORKAROUND true)
|
||||
set(_boost_STATIC_RUNTIME_WORKAROUND TRUE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -1681,13 +1681,11 @@ if(Boost_FOUND)
|
||||
endif()
|
||||
|
||||
if(EXISTS "${_boost_LIB_DIR}/lib")
|
||||
set(_boost_LIB_DIR ${_boost_LIB_DIR}/lib)
|
||||
string(APPEND _boost_LIB_DIR /lib)
|
||||
elseif(EXISTS "${_boost_LIB_DIR}/stage/lib")
|
||||
string(APPEND _boost_LIB_DIR "/stage/lib")
|
||||
else()
|
||||
if(EXISTS "${_boost_LIB_DIR}/stage/lib")
|
||||
set(_boost_LIB_DIR ${_boost_LIB_DIR}/stage/lib)
|
||||
else()
|
||||
set(_boost_LIB_DIR "")
|
||||
endif()
|
||||
set(_boost_LIB_DIR "")
|
||||
endif()
|
||||
|
||||
if(_boost_LIB_DIR AND EXISTS "${_boost_LIB_DIR}")
|
||||
|
||||
Reference in New Issue
Block a user