mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 18:45:55 +00:00
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:
committed by
Brad Chase
parent
db13ddf844
commit
f37aa1d6c8
@@ -282,8 +282,12 @@ macro(find_boost)
|
|||||||
endif()
|
endif()
|
||||||
else(DEFINED ENV{BOOST_ROOT})
|
else(DEFINED ENV{BOOST_ROOT})
|
||||||
include_directories(SYSTEM $ENV{BOOST_ROOT})
|
include_directories(SYSTEM $ENV{BOOST_ROOT})
|
||||||
|
if(IS_DIRECTORY $ENV{BOOST_ROOT}/stage64/lib)
|
||||||
|
link_directories($ENV{BOOST_ROOT}/stage64/lib)
|
||||||
|
else()
|
||||||
link_directories($ENV{BOOST_ROOT}/stage/lib)
|
link_directories($ENV{BOOST_ROOT}/stage/lib)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(find_pthread)
|
macro(find_pthread)
|
||||||
|
|||||||
Reference in New Issue
Block a user