Improve CMake find_boost compatibility:

* Put all the relevant calls together.
* Sensibly handle stage vs. stage64 lib directories.
* Unable to move target_link_libraries acur_project not defined in new location, so breaks non-win builds
This commit is contained in:
Edward Hennis
2016-10-20 19:51:57 -04:00
committed by Brad Chase
parent db13ddf844
commit f37aa1d6c8

View File

@@ -282,7 +282,11 @@ macro(find_boost)
endif()
else(DEFINED ENV{BOOST_ROOT})
include_directories(SYSTEM $ENV{BOOST_ROOT})
link_directories($ENV{BOOST_ROOT}/stage/lib)
if(IS_DIRECTORY $ENV{BOOST_ROOT}/stage64/lib)
link_directories($ENV{BOOST_ROOT}/stage64/lib)
else()
link_directories($ENV{BOOST_ROOT}/stage/lib)
endif()
endif()
endmacro()