FindBoost: Simplify library dir detection with cascading if/elseif/else

This commit is contained in:
Alex Turbov authored and Brad King committed 2016-10-13 10:19:07 -04:00
1 parent ca4029fa9a
commit 08b9a0fdfa
1 file changed
+4 -6
+4 -6
View File
@@ -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}")