@ -64,14 +64,15 @@
# C u r r e n t l y t h i s m o d u l e s e a r c h e s f o r t h e f o l l o w i n g v e r s i o n n u m b e r s :
# C u r r e n t l y t h i s m o d u l e s e a r c h e s f o r t h e f o l l o w i n g v e r s i o n n u m b e r s :
# 1 . 3 3 , 1 . 3 3 . 0 , 1 . 3 3 . 1 , 1 . 3 4 , 1 . 3 4 . 0 , 1 . 3 4 . 1 , 1 . 3 5 , 1 . 3 5 . 0 , 1 . 3 5 . 1 ,
# 1 . 3 3 , 1 . 3 3 . 0 , 1 . 3 3 . 1 , 1 . 3 4 , 1 . 3 4 . 0 , 1 . 3 4 . 1 , 1 . 3 5 , 1 . 3 5 . 0 , 1 . 3 5 . 1 ,
# 1 . 3 6 , 1 . 3 6 . 0 , 1 . 3 6 . 1 , 1 . 3 7 , 1 . 3 7 . 0 , 1 . 3 8 , 1 . 3 8 . 0 , 1 . 3 9 , 1 . 3 9 . 0 ,
# 1 . 3 6 , 1 . 3 6 . 0 , 1 . 3 6 . 1 , 1 . 3 7 , 1 . 3 7 . 0 , 1 . 3 8 , 1 . 3 8 . 0 , 1 . 3 9 , 1 . 3 9 . 0 ,
# 1 . 4 0 , 1 . 4 0 . 0 , 1 . 4 1 , 1 . 4 1 . 0 , 1 . 4 2 , 1 . 4 2 . 0 , 1 . 4 3 , 1 . 4 3 . 0 , 1 . 4 4 , 1 . 4 4 . 0
# 1 . 4 0 , 1 . 4 0 . 0 , 1 . 4 1 , 1 . 4 1 . 0 , 1 . 4 2 , 1 . 4 2 . 0 , 1 . 4 3 , 1 . 4 3 . 0 , 1 . 4 4 , 1 . 4 4 . 0 ,
# 1 . 4 5 , 1 . 4 5 . 0 , 1 . 4 6 , 1 . 4 6 . 0
#
#
# N O T E : I f y o u a d d a n e w m a j o r 1 . x v e r s i o n i n B o o s t _ A D D I T I O N A L _ V E R S I O N S y o u s h o u l d
# N O T E : I f y o u a d d a n e w m a j o r 1 . x v e r s i o n i n B o o s t _ A D D I T I O N A L _ V E R S I O N S y o u s h o u l d
# a d d b o t h 1 . x a n d 1 . x . 0 a s s h o w n a b o v e . O f f i c i a l B o o s t i n c l u d e d i r e c t o r i e s
# a d d b o t h 1 . x a n d 1 . x . 0 a s s h o w n a b o v e . O f f i c i a l B o o s t i n c l u d e d i r e c t o r i e s
# o m i t t h e 3 r d v e r s i o n n u m b e r f r o m i n c l u d e p a t h s i f i t i s 0 a l t h o u g h n o t a l l
# o m i t t h e 3 r d v e r s i o n n u m b e r f r o m i n c l u d e p a t h s i f i t i s 0 a l t h o u g h n o t a l l
# b i n a r y B o o s t r e l e a s e s d o s o .
# b i n a r y B o o s t r e l e a s e s d o s o .
#
#
# SET ( Boost_ADDITIONAL_VERSIONS "1.78" "1.78.0" "1.79" "1.79.0" )
# set ( Boost_ADDITIONAL_VERSIONS "1.78" "1.78.0" "1.79" "1.79.0" )
#
#
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
#
#
@ -163,6 +164,7 @@
#
#
# T h e s e l a s t t h r e e v a r i a b l e s a r e a v a i l a b l e a l s o a s e n v i r o n m e n t v a r i a b l e s :
# T h e s e l a s t t h r e e v a r i a b l e s a r e a v a i l a b l e a l s o a s e n v i r o n m e n t v a r i a b l e s :
# A l s o , n o t e t h e y a r e c o m p l e t e l y U P P E R C A S E .
#
#
# B O O S T _ R O O T o r B O O S T R O O T T h e p r e f e r r e d i n s t a l l a t i o n p r e f i x f o r s e a r c h i n g f o r
# B O O S T _ R O O T o r B O O S T R O O T T h e p r e f e r r e d i n s t a l l a t i o n p r e f i x f o r s e a r c h i n g f o r
# B o o s t . S e t t h i s i f t h e m o d u l e h a s p r o b l e m s f i n d i n g
# B o o s t . S e t t h i s i f t h e m o d u l e h a s p r o b l e m s f i n d i n g
@ -250,59 +252,59 @@
# A n d E L S E / E N D I F p a i r s w e r e r e m o v e d f o r r e a d a b i l i t y .
# A n d E L S E / E N D I F p a i r s w e r e r e m o v e d f o r r e a d a b i l i t y .
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
MACRO ( _Boost_ADJUST_LIB_VARS basename )
macro ( _Boost_ADJUST_LIB_VARS basename )
IF ( Boost_INCLUDE_DIR )
if ( Boost_INCLUDE_DIR )
IF ( Boost_ ${ basename } _LIBRARY_DEBUG AND Boost_ ${ basename } _LIBRARY_RELEASE )
if ( Boost_ ${ basename } _LIBRARY_DEBUG AND Boost_ ${ basename } _LIBRARY_RELEASE )
# i f t h e g e n e r a t o r s u p p o r t s c o n f i g u r a t i o n t y p e s t h e n s e t
# i f t h e g e n e r a t o r s u p p o r t s c o n f i g u r a t i o n t y p e s t h e n s e t
# o p t i m i z e d a n d d e b u g l i b r a r i e s , o r i f t h e C M A K E _ B U I L D _ T Y P E h a s a v a l u e
# o p t i m i z e d a n d d e b u g l i b r a r i e s , o r i f t h e C M A K E _ B U I L D _ T Y P E h a s a v a l u e
IF ( CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE )
if ( CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE )
SET ( Boost_ ${ basename } _LIBRARY optimized ${ Boost_${basename } _LIBRARY_RELEASE} debug ${ Boost_${basename } _LIBRARY_DEBUG} )
set ( Boost_ ${ basename } _LIBRARY optimized ${ Boost_${basename } _LIBRARY_RELEASE} debug ${ Boost_${basename } _LIBRARY_DEBUG} )
ELSE ( )
else ( )
# i f t h e r e a r e n o c o n f i g u r a t i o n t y p e s a n d C M A K E _ B U I L D _ T Y P E h a s n o v a l u e
# i f t h e r e a r e n o c o n f i g u r a t i o n t y p e s a n d C M A K E _ B U I L D _ T Y P E h a s n o v a l u e
# t h e n j u s t u s e t h e r e l e a s e l i b r a r i e s
# t h e n j u s t u s e t h e r e l e a s e l i b r a r i e s
SET ( Boost_ ${ basename } _LIBRARY ${ Boost_${basename } _LIBRARY_RELEASE} )
set ( Boost_ ${ basename } _LIBRARY ${ Boost_${basename } _LIBRARY_RELEASE} )
ENDIF ( )
endif ( )
# F I X M E : T h i s p r o b a b l y s h o u l d b e s e t f o r b o t h c a s e s
# F I X M E : T h i s p r o b a b l y s h o u l d b e s e t f o r b o t h c a s e s
SET ( Boost_ ${ basename } _LIBRARIES optimized ${ Boost_${basename } _LIBRARY_RELEASE} debug ${ Boost_${basename } _LIBRARY_DEBUG} )
set ( Boost_ ${ basename } _LIBRARIES optimized ${ Boost_${basename } _LIBRARY_RELEASE} debug ${ Boost_${basename } _LIBRARY_DEBUG} )
ENDIF ( )
endif ( )
# i f o n l y t h e r e l e a s e v e r s i o n w a s f o u n d , s e t t h e d e b u g v a r i a b l e a l s o t o t h e r e l e a s e v e r s i o n
# i f o n l y t h e r e l e a s e v e r s i o n w a s f o u n d , s e t t h e d e b u g v a r i a b l e a l s o t o t h e r e l e a s e v e r s i o n
IF ( Boost_ ${ basename } _LIBRARY_RELEASE AND NOT Boost_ ${ basename } _LIBRARY_DEBUG )
if ( Boost_ ${ basename } _LIBRARY_RELEASE AND NOT Boost_ ${ basename } _LIBRARY_DEBUG )
SET ( Boost_ ${ basename } _LIBRARY_DEBUG ${ Boost_${basename } _LIBRARY_RELEASE} )
set ( Boost_ ${ basename } _LIBRARY_DEBUG ${ Boost_${basename } _LIBRARY_RELEASE} )
SET ( Boost_ ${ basename } _LIBRARY ${ Boost_${basename } _LIBRARY_RELEASE} )
set ( Boost_ ${ basename } _LIBRARY ${ Boost_${basename } _LIBRARY_RELEASE} )
SET ( Boost_ ${ basename } _LIBRARIES ${ Boost_${basename } _LIBRARY_RELEASE} )
set ( Boost_ ${ basename } _LIBRARIES ${ Boost_${basename } _LIBRARY_RELEASE} )
ENDIF ( )
endif ( )
# i f o n l y t h e d e b u g v e r s i o n w a s f o u n d , s e t t h e r e l e a s e v a r i a b l e a l s o t o t h e d e b u g v e r s i o n
# i f o n l y t h e d e b u g v e r s i o n w a s f o u n d , s e t t h e r e l e a s e v a r i a b l e a l s o t o t h e d e b u g v e r s i o n
IF ( Boost_ ${ basename } _LIBRARY_DEBUG AND NOT Boost_ ${ basename } _LIBRARY_RELEASE )
if ( Boost_ ${ basename } _LIBRARY_DEBUG AND NOT Boost_ ${ basename } _LIBRARY_RELEASE )
SET ( Boost_ ${ basename } _LIBRARY_RELEASE ${ Boost_${basename } _LIBRARY_DEBUG} )
set ( Boost_ ${ basename } _LIBRARY_RELEASE ${ Boost_${basename } _LIBRARY_DEBUG} )
SET ( Boost_ ${ basename } _LIBRARY ${ Boost_${basename } _LIBRARY_DEBUG} )
set ( Boost_ ${ basename } _LIBRARY ${ Boost_${basename } _LIBRARY_DEBUG} )
SET ( Boost_ ${ basename } _LIBRARIES ${ Boost_${basename } _LIBRARY_DEBUG} )
set ( Boost_ ${ basename } _LIBRARIES ${ Boost_${basename } _LIBRARY_DEBUG} )
ENDIF ( )
endif ( )
IF ( Boost_ ${ basename } _LIBRARY )
if ( Boost_ ${ basename } _LIBRARY )
set ( Boost_ ${ basename } _LIBRARY ${ Boost_${basename } _LIBRARY} CACHE FILEPATH "The Boost ${basename} library" )
set ( Boost_ ${ basename } _LIBRARY ${ Boost_${basename } _LIBRARY} CACHE FILEPATH "The Boost ${basename} library" )
# R e m o v e s u p e r f l u o u s " d e b u g " / " o p t i m i z e d " k e y w o r d s f r o m
# R e m o v e s u p e r f l u o u s " d e b u g " / " o p t i m i z e d " k e y w o r d s f r o m
# B o o s t _ L I B R A R Y _ D I R S
# B o o s t _ L I B R A R Y _ D I R S
FOREACH ( _boost_my_lib ${ Boost_${basename } _LIBRARY} )
foreach ( _boost_my_lib ${ Boost_${basename } _LIBRARY} )
GET_FILENAME_COMPONENT ( _boost_my_lib_path "${_boost_my_lib}" PATH )
get_filename_component ( _boost_my_lib_path "${_boost_my_lib}" PATH )
LIST ( APPEND Boost_LIBRARY_DIRS ${ _boost_my_lib_path } )
list ( APPEND Boost_LIBRARY_DIRS ${ _boost_my_lib_path } )
ENDFOREACH ( )
endforeach ( )
LIST ( REMOVE_DUPLICATES Boost_LIBRARY_DIRS )
list ( REMOVE_DUPLICATES Boost_LIBRARY_DIRS )
set ( Boost_LIBRARY_DIRS ${ Boost_LIBRARY_DIRS } CACHE FILEPATH "Boost library directory" )
set ( Boost_LIBRARY_DIRS ${ Boost_LIBRARY_DIRS } CACHE FILEPATH "Boost library directory" )
SET ( Boost_ ${ basename } _FOUND ON CACHE INTERNAL "Whether the Boost ${basename} library found" )
set ( Boost_ ${ basename } _FOUND ON CACHE INTERNAL "Whether the Boost ${basename} library found" )
ENDIF ( Boost_ ${ basename } _LIBRARY )
endif ( Boost_ ${ basename } _LIBRARY )
ENDIF ( Boost_INCLUDE_DIR )
endif ( Boost_INCLUDE_DIR )
# M a k e v a r i a b l e s c h a n g e b l e t o t h e a d v a n c e d u s e r
# M a k e v a r i a b l e s c h a n g e b l e t o t h e a d v a n c e d u s e r
MARK_AS_ADVANCED (
mark_as_advanced (
B o o s t _ $ { b a s e n a m e } _ L I B R A R Y
B o o s t _ $ { b a s e n a m e } _ L I B R A R Y
B o o s t _ $ { b a s e n a m e } _ L I B R A R Y _ R E L E A S E
B o o s t _ $ { b a s e n a m e } _ L I B R A R Y _ R E L E A S E
B o o s t _ $ { b a s e n a m e } _ L I B R A R Y _ D E B U G
B o o s t _ $ { b a s e n a m e } _ L I B R A R Y _ D E B U G
)
)
ENDMACRO ( _Boost_ADJUST_LIB_VARS )
endmacro ( _Boost_ADJUST_LIB_VARS )
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -310,17 +312,17 @@ ENDMACRO (_Boost_ADJUST_LIB_VARS)
# R u n s c o m p i l e r w i t h " - d u m p v e r s i o n " a n d p a r s e s m a j o r / m i n o r
# R u n s c o m p i l e r w i t h " - d u m p v e r s i o n " a n d p a r s e s m a j o r / m i n o r
# v e r s i o n w i t h a r e g e x .
# v e r s i o n w i t h a r e g e x .
#
#
FUNCTION ( _Boost_COMPILER_DUMPVERSION _OUTPUT_VERSION )
function ( _Boost_COMPILER_DUMPVERSION _OUTPUT_VERSION )
EXEC_PROGRAM ( ${ CMAKE_CXX_COMPILER }
exec_program ( ${ CMAKE_CXX_COMPILER }
A R G S $ { C M A K E _ C X X _ C O M P I L E R _ A R G 1 } - d u m p v e r s i o n
A R G S $ { C M A K E _ C X X _ C O M P I L E R _ A R G 1 } - d u m p v e r s i o n
O U T P U T _ V A R I A B L E _ b o o s t _ C O M P I L E R _ V E R S I O N
O U T P U T _ V A R I A B L E _ b o o s t _ C O M P I L E R _ V E R S I O N
)
)
STRING ( REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2"
string ( REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2"
_ b o o s t _ C O M P I L E R _ V E R S I O N $ { _ b o o s t _ C O M P I L E R _ V E R S I O N } )
_ b o o s t _ C O M P I L E R _ V E R S I O N $ { _ b o o s t _ C O M P I L E R _ V E R S I O N } )
SET ( ${ _OUTPUT_VERSION } ${ _boost_COMPILER_VERSION } PARENT_SCOPE )
set ( ${ _OUTPUT_VERSION } ${ _boost_COMPILER_VERSION } PARENT_SCOPE )
ENDFUNCTION ( )
endfunction ( )
#
#
# A c o n v e n i e n c e f u n c t i o n f o r m a r k i n g d e s i r e d c o m p o n e n t s
# A c o n v e n i e n c e f u n c t i o n f o r m a r k i n g d e s i r e d c o m p o n e n t s
@ -355,6 +357,13 @@ function(_Boost_SWAP_WITH_REALPATH _library _docstring)
endif ( )
endif ( )
endfunction ( )
endfunction ( )
function ( _Boost_CHECK_SPELLING _var )
if ( ${ _var } )
string ( TOUPPER ${ _var } _var_UC )
message ( FATAL_ERROR "ERROR: ${_var} is not the correct spelling. The proper spelling is ${_var_UC}." )
endif ( )
endfunction ( )
#
#
# E n d f u n c t i o n s / m a c r o s
# E n d f u n c t i o n s / m a c r o s
#
#
@ -363,9 +372,9 @@ endfunction()
IF ( NOT DEFINED Boost_USE_MULTITHREADED )
if ( NOT DEFINED Boost_USE_MULTITHREADED )
SET ( Boost_USE_MULTITHREADED TRUE )
set ( Boost_USE_MULTITHREADED TRUE )
ENDIF ( )
endif ( )
if ( Boost_FIND_VERSION_EXACT )
if ( Boost_FIND_VERSION_EXACT )
# T h e v e r s i o n m a y a p p e a r i n a d i r e c t o r y w i t h o r w i t h o u t t h e p a t c h
# T h e v e r s i o n m a y a p p e a r i n a d i r e c t o r y w i t h o r w i t h o u t t h e p a t c h
@ -377,7 +386,7 @@ else(Boost_FIND_VERSION_EXACT)
# T h e u s e r h a s n o t r e q u e s t e d a n e x a c t v e r s i o n . A m o n g k n o w n
# T h e u s e r h a s n o t r e q u e s t e d a n e x a c t v e r s i o n . A m o n g k n o w n
# v e r s i o n s , f i n d t h o s e t h a t a r e a c c e p t a b l e t o t h e u s e r r e q u e s t .
# v e r s i o n s , f i n d t h o s e t h a t a r e a c c e p t a b l e t o t h e u s e r r e q u e s t .
set ( _Boost_KNOWN_VERSIONS ${ Boost_ADDITIONAL_VERSIONS }
set ( _Boost_KNOWN_VERSIONS ${ Boost_ADDITIONAL_VERSIONS }
" 1 . 4 4. 0 " " 1 . 4 4 " " 1 . 4 3 . 0 " " 1 . 4 3 " " 1 . 4 2 . 0 " " 1 . 4 2 "
" 1 . 4 6. 0 " " 1 . 4 6 " " 1 . 4 5 . 0 " " 1 . 4 5 " " 1 . 4 4. 0 " " 1 . 4 4 " " 1 . 4 3 . 0 " " 1 . 4 3 " " 1 . 4 2 . 0 " " 1 . 4 2 "
" 1 . 4 1 . 0 " " 1 . 4 1 " " 1 . 4 0 . 0 " " 1 . 4 0 " " 1 . 3 9 . 0 " " 1 . 3 9 " " 1 . 3 8 . 0 " " 1 . 3 8 " " 1 . 3 7 . 0 " " 1 . 3 7 "
" 1 . 4 1 . 0 " " 1 . 4 1 " " 1 . 4 0 . 0 " " 1 . 4 0 " " 1 . 3 9 . 0 " " 1 . 3 9 " " 1 . 3 8 . 0 " " 1 . 3 8 " " 1 . 3 7 . 0 " " 1 . 3 7 "
" 1 . 3 6 . 1 " " 1 . 3 6 . 0 " " 1 . 3 6 " " 1 . 3 5 . 1 " " 1 . 3 5 . 0 " " 1 . 3 5 " " 1 . 3 4 . 1 " " 1 . 3 4 . 0 "
" 1 . 3 6 . 1 " " 1 . 3 6 . 0 " " 1 . 3 6 " " 1 . 3 5 . 1 " " 1 . 3 5 . 0 " " 1 . 3 5 " " 1 . 3 4 . 1 " " 1 . 3 4 . 0 "
" 1 . 3 4 " " 1 . 3 3 . 1 " " 1 . 3 3 . 0 " " 1 . 3 3 " )
" 1 . 3 4 " " 1 . 3 3 . 1 " " 1 . 3 3 . 0 " " 1 . 3 3 " )
@ -406,49 +415,47 @@ endif(Boost_FIND_VERSION_EXACT)
# B o o s t .
# B o o s t .
set ( Boost_ERROR_REASON )
set ( Boost_ERROR_REASON )
SET ( _boost_IN_CACHE TRUE )
set ( _boost_IN_CACHE TRUE )
IF ( Boost_INCLUDE_DIR )
if ( Boost_INCLUDE_DIR )
# O n v e r s i o n s < 1 . 3 5 , r e m o v e t h e S y s t e m l i b r a r y f r o m t h e c o n s i d e r e d l i s t
# O n v e r s i o n s < 1 . 3 5 , r e m o v e t h e S y s t e m l i b r a r y f r o m t h e c o n s i d e r e d l i s t
# s i n c e i t w a s n ' t a d d e d u n t i l 1 . 3 5 .
# s i n c e i t w a s n ' t a d d e d u n t i l 1 . 3 5 .
if ( Boost_VERSION AND Boost_FIND_COMPONENTS )
if ( Boost_VERSION AND Boost_FIND_COMPONENTS )
math ( EXPR _boost_maj "${Boost_VERSION} / 100000" )
if ( Boost_VERSION LESS 103500 )
math ( EXPR _boost_min "${Boost_VERSION} / 100 % 1000" )
if ( ${ _boost_maj } . ${ _boost_min } VERSION_LESS 1.35 )
list ( REMOVE_ITEM Boost_FIND_COMPONENTS system )
list ( REMOVE_ITEM Boost_FIND_COMPONENTS system )
endif ( )
endif ( )
endif ( )
endif ( )
FOREACH ( COMPONENT ${ Boost_FIND_COMPONENTS } )
foreach ( COMPONENT ${ Boost_FIND_COMPONENTS } )
STRING ( TOUPPER ${ COMPONENT } COMPONENT )
string ( TOUPPER ${ COMPONENT } COMPONENT )
IF ( NOT Boost_ ${ COMPONENT } _FOUND )
if ( NOT Boost_ ${ COMPONENT } _FOUND )
SET ( _boost_IN_CACHE FALSE )
set ( _boost_IN_CACHE FALSE )
ENDIF ( NOT Boost_ ${ COMPONENT } _FOUND )
endif ( NOT Boost_ ${ COMPONENT } _FOUND )
ENDFOREACH ( COMPONENT )
endforeach ( COMPONENT )
ELSE ( Boost_INCLUDE_DIR )
else ( Boost_INCLUDE_DIR )
SET ( _boost_IN_CACHE FALSE )
set ( _boost_IN_CACHE FALSE )
ENDIF ( Boost_INCLUDE_DIR )
endif ( Boost_INCLUDE_DIR )
IF ( _boost_IN_CACHE )
if ( _boost_IN_CACHE )
# i n c a c h e a l r e a d y
# i n c a c h e a l r e a d y
SET ( Boost_FOUND TRUE )
set ( Boost_FOUND TRUE )
FOREACH ( COMPONENT ${ Boost_FIND_COMPONENTS } )
foreach ( COMPONENT ${ Boost_FIND_COMPONENTS } )
STRING ( TOUPPER ${ COMPONENT } COMPONENT )
string ( TOUPPER ${ COMPONENT } COMPONENT )
_Boost_ADJUST_LIB_VARS ( ${ COMPONENT } )
_Boost_ADJUST_LIB_VARS ( ${ COMPONENT } )
SET ( Boost_LIBRARIES ${ Boost_LIBRARIES } ${ Boost_${COMPONENT } _LIBRARY} )
set ( Boost_LIBRARIES ${ Boost_LIBRARIES } ${ Boost_${COMPONENT } _LIBRARY} )
ENDFOREACH ( COMPONENT )
endforeach ( COMPONENT )
SET ( Boost_INCLUDE_DIRS ${ Boost_INCLUDE_DIR } )
set ( Boost_INCLUDE_DIRS ${ Boost_INCLUDE_DIR } )
IF ( Boost_VERSION AND NOT "${Boost_VERSION}" STREQUAL "0" )
if ( Boost_VERSION AND NOT "${Boost_VERSION}" STREQUAL "0" )
MATH ( EXPR Boost_MAJOR_VERSION "${Boost_VERSION} / 100000" )
math ( EXPR Boost_MAJOR_VERSION "${Boost_VERSION} / 100000" )
MATH ( EXPR Boost_MINOR_VERSION "${Boost_VERSION} / 100 % 1000" )
math ( EXPR Boost_MINOR_VERSION "${Boost_VERSION} / 100 % 1000" )
MATH ( EXPR Boost_SUBMINOR_VERSION "${Boost_VERSION} % 100" )
math ( EXPR Boost_SUBMINOR_VERSION "${Boost_VERSION} % 100" )
ENDIF ( Boost_VERSION AND NOT "${Boost_VERSION}" STREQUAL "0" )
endif ( Boost_VERSION AND NOT "${Boost_VERSION}" STREQUAL "0" )
if ( Boost_DEBUG )
if ( Boost_DEBUG )
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
" b o o s t $ { B o o s t _ M A J O R _ V E R S I O N } . $ { B o o s t _ M I N O R _ V E R S I O N } . $ { B o o s t _ S U B M I N O R _ V E R S I O N } "
" b o o s t $ { B o o s t _ M A J O R _ V E R S I O N } . $ { B o o s t _ M I N O R _ V E R S I O N } . $ { B o o s t _ S U B M I N O R _ V E R S I O N } "
" i s a l r e a d y i n t h e c a c h e . T o v i e w d e b u g g i n g m e s s a g e s , p l e a s e c l e a r t h e c a c h e . " )
" i s a l r e a d y i n t h e c a c h e . T o v i e w d e b u g g i n g m e s s a g e s , p l e a s e c l e a r t h e c a c h e . " )
endif ( )
endif ( )
ELSE ( _boost_IN_CACHE )
else ( _boost_IN_CACHE )
# N e e d t o s e a r c h f o r b o o s t
# N e e d t o s e a r c h f o r b o o s t
if ( Boost_DEBUG )
if ( Boost_DEBUG )
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
@ -468,7 +475,7 @@ ELSE (_boost_IN_CACHE)
" B o o s t _ N O _ S Y S T E M _ P A T H S = $ { B o o s t _ N O _ S Y S T E M _ P A T H S } " )
" B o o s t _ N O _ S Y S T E M _ P A T H S = $ { B o o s t _ N O _ S Y S T E M _ P A T H S } " )
endif ( )
endif ( )
IF ( WIN32 )
if ( WIN32 )
# I n w i n d o w s , a u t o m a t i c l i n k i n g i s p e r f o r m e d , s o y o u d o n o t h a v e
# I n w i n d o w s , a u t o m a t i c l i n k i n g i s p e r f o r m e d , s o y o u d o n o t h a v e
# t o s p e c i f y t h e l i b r a r i e s . I f y o u a r e l i n k i n g t o a d y n a m i c
# t o s p e c i f y t h e l i b r a r i e s . I f y o u a r e l i n k i n g t o a d y n a m i c
# r u n t i m e , t h e n y o u c a n c h o o s e t o l i n k t o e i t h e r a s t a t i c o r a
# r u n t i m e , t h e n y o u c a n c h o o s e t o l i n k t o e i t h e r a s t a t i c o r a
@ -486,9 +493,9 @@ ELSE (_boost_IN_CACHE)
# t h e n d e f i n i n g B O O S T _ L I B _ D I A G N O S T I C w i l l c a u s e t h e a u t o - l i n k i n g
# t h e n d e f i n i n g B O O S T _ L I B _ D I A G N O S T I C w i l l c a u s e t h e a u t o - l i n k i n g
# c o d e t o e m i t a # p r a g m a m e s s a g e e a c h t i m e a l i b r a r y i s s e l e c t e d
# c o d e t o e m i t a # p r a g m a m e s s a g e e a c h t i m e a l i b r a r y i s s e l e c t e d
# f o r l i n k i n g .
# f o r l i n k i n g .
SET ( Boost_LIB_DIAGNOSTIC_DEFINITIONS
set ( Boost_LIB_DIAGNOSTIC_DEFINITIONS
" - D B O O S T _ L I B _ D I A G N O S T I C " C A C H E S T R I N G " B o o s t d i a g n o s t i c d e f i n e " )
" - D B O O S T _ L I B _ D I A G N O S T I C " C A C H E S T R I N G " B o o s t d i a g n o s t i c d e f i n e " )
ENDIF ( WIN32 )
endif ( WIN32 )
set ( _boost_INCLUDE_SEARCH_DIRS_SYSTEM
set ( _boost_INCLUDE_SEARCH_DIRS_SYSTEM
C : / b o o s t / i n c l u d e
C : / b o o s t / i n c l u d e
@ -498,36 +505,33 @@ ELSE (_boost_IN_CACHE)
/ s w / l o c a l / i n c l u d e
/ s w / l o c a l / i n c l u d e
)
)
# I f B o o s t _ R O O T w a s d e f i n e d , g e n t l y c o r r e c t t h e u s e r
_Boost_CHECK_SPELLING ( Boost_ROOT )
if ( Boost_ROOT )
_Boost_CHECK_SPELLING ( Boost_LIBRARYDIR )
message ( "WARNING: Boost_ROOT was set which is incorrect and is being ignored. "
_Boost_CHECK_SPELLING ( Boost_INCLUDEDIR )
" Y o u n e e d t o u s e B O O S T _ R O O T i n s t e a d . "
" A l s o , w e s u g g e s t s e t t i n g B o o s t _ N O _ S Y S T E M _ P A T H S . " )
endif ( )
# I f B O O S T _ R O O T w a s d e f i n e d i n t h e e n v i r o n m e n t , u s e i t .
# I f B O O S T _ R O O T w a s d e f i n e d i n t h e e n v i r o n m e n t , u s e i t .
if ( NOT BOOST_ROOT AND NOT $ENV{ BOOST_ROOT } STREQUAL "" )
if ( NOT BOOST_ROOT AND NOT $ENV{ BOOST_ROOT } STREQUAL "" )
set ( BOOST_ROOT $ENV{ BOOST_ROOT } )
set ( BOOST_ROOT $ENV{ BOOST_ROOT } )
endif ( NOT BOOST_ROOT AND NOT $ENV{ BOOST_ROOT } STREQUAL "" )
endif ( )
# I f B O O S T R O O T w a s d e f i n e d i n t h e e n v i r o n m e n t , u s e i t .
# I f B O O S T R O O T w a s d e f i n e d i n t h e e n v i r o n m e n t , u s e i t .
if ( NOT BOOST_ROOT AND NOT $ENV{ BOOSTROOT } STREQUAL "" )
if ( NOT BOOST_ROOT AND NOT $ENV{ BOOSTROOT } STREQUAL "" )
set ( BOOST_ROOT $ENV{ BOOSTROOT } )
set ( BOOST_ROOT $ENV{ BOOSTROOT } )
endif ( NOT BOOST_ROOT AND NOT $ENV{ BOOSTROOT } STREQUAL "" )
endif ( )
# I f B O O S T _ I N C L U D E D I R w a s d e f i n e d i n t h e e n v i r o n m e n t , u s e i t .
# I f B O O S T _ I N C L U D E D I R w a s d e f i n e d i n t h e e n v i r o n m e n t , u s e i t .
IF ( NOT $ENV{ BOOST_INCLUDEDIR } STREQUAL "" )
if ( NOT $ENV{ BOOST_INCLUDEDIR } STREQUAL "" )
set ( BOOST_INCLUDEDIR $ENV{ BOOST_INCLUDEDIR } )
set ( BOOST_INCLUDEDIR $ENV{ BOOST_INCLUDEDIR } )
ENDIF( NOT $ENV{ BOOST_INCLUDEDIR } STREQUAL "" )
endif( )
# I f B O O S T _ L I B R A R Y D I R w a s d e f i n e d i n t h e e n v i r o n m e n t , u s e i t .
# I f B O O S T _ L I B R A R Y D I R w a s d e f i n e d i n t h e e n v i r o n m e n t , u s e i t .
IF ( NOT $ENV{ BOOST_LIBRARYDIR } STREQUAL "" )
if ( NOT $ENV{ BOOST_LIBRARYDIR } STREQUAL "" )
set ( BOOST_LIBRARYDIR $ENV{ BOOST_LIBRARYDIR } )
set ( BOOST_LIBRARYDIR $ENV{ BOOST_LIBRARYDIR } )
ENDIF( NOT $ENV{ BOOST_LIBRARYDIR } STREQUAL "" )
endif( )
IF ( BOOST_ROOT )
if ( BOOST_ROOT )
file ( TO_CMAKE_PATH ${ BOOST_ROOT } BOOST_ROOT )
file ( TO_CMAKE_PATH ${ BOOST_ROOT } BOOST_ROOT )
ENDIF( BOOST_ROOT )
endif( )
if ( Boost_DEBUG )
if ( Boost_DEBUG )
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
@ -567,28 +571,28 @@ ELSE (_boost_IN_CACHE)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# T r y t o f i n d B o o s t b y s t e p p i n g b a c k w a r d s t h r o u g h t h e B o o s t v e r s i o n s
# T r y t o f i n d B o o s t b y s t e p p i n g b a c k w a r d s t h r o u g h t h e B o o s t v e r s i o n s
# w e k n o w a b o u t .
# w e k n o w a b o u t .
IF ( NOT Boost_INCLUDE_DIR )
if ( NOT Boost_INCLUDE_DIR )
# B u i l d a l i s t o f p a t h s u f f i x e s f o r e a c h v e r s i o n .
# B u i l d a l i s t o f p a t h s u f f i x e s f o r e a c h v e r s i o n .
SET ( _boost_PATH_SUFFIXES )
set ( _boost_PATH_SUFFIXES )
FOREACH ( _boost_VER ${ _boost_TEST_VERSIONS } )
foreach ( _boost_VER ${ _boost_TEST_VERSIONS } )
# A d d i n a p a t h s u f f i x , b a s e d o n t h e r e q u i r e d v e r s i o n , i d e a l l y
# A d d i n a p a t h s u f f i x , b a s e d o n t h e r e q u i r e d v e r s i o n , i d e a l l y
# w e c o u l d r e a d t h i s f r o m v e r s i o n . h p p , b u t f o r t h a t t o w o r k w e ' d
# w e c o u l d r e a d t h i s f r o m v e r s i o n . h p p , b u t f o r t h a t t o w o r k w e ' d
# n e e d t o k n o w t h e i n c l u d e d i r a l r e a d y
# n e e d t o k n o w t h e i n c l u d e d i r a l r e a d y
set ( _boost_BOOSTIFIED_VERSION )
set ( _boost_BOOSTIFIED_VERSION )
# T r a n s f o r m 1 . 3 5 = > 1 _ 3 5 a n d 1 . 3 6 . 0 = > 1 _ 3 6 _ 0
# T r a n s f o r m 1 . 3 5 = > 1 _ 3 5 a n d 1 . 3 6 . 0 = > 1 _ 3 6 _ 0
IF ( _boost_VER MATCHES "[0-9]+\\.[0-9]+\\.[0-9]+" )
if ( _boost_VER MATCHES "[0-9]+\\.[0-9]+\\.[0-9]+" )
STRING ( REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1_\\2_\\3"
string ( REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1_\\2_\\3"
_ b o o s t _ B O O S T I F I E D _ V E R S I O N $ { _ b o o s t _ V E R } )
_ b o o s t _ B O O S T I F I E D _ V E R S I O N $ { _ b o o s t _ V E R } )
ELSEIF ( _boost_VER MATCHES "[0-9]+\\.[0-9]+" )
elseif ( _boost_VER MATCHES "[0-9]+\\.[0-9]+" )
STRING ( REGEX REPLACE "([0-9]+)\\.([0-9]+)" "\\1_\\2"
string ( REGEX REPLACE "([0-9]+)\\.([0-9]+)" "\\1_\\2"
_ b o o s t _ B O O S T I F I E D _ V E R S I O N $ { _ b o o s t _ V E R } )
_ b o o s t _ B O O S T I F I E D _ V E R S I O N $ { _ b o o s t _ V E R } )
ENDIF ( )
endif ( )
list ( APPEND _boost_PATH_SUFFIXES "boost-${_boost_BOOSTIFIED_VERSION}" )
list ( APPEND _boost_PATH_SUFFIXES "boost-${_boost_BOOSTIFIED_VERSION}" )
list ( APPEND _boost_PATH_SUFFIXES "boost_${_boost_BOOSTIFIED_VERSION}" )
list ( APPEND _boost_PATH_SUFFIXES "boost_${_boost_BOOSTIFIED_VERSION}" )
ENDFOREACH ( _boost_VER )
endforeach ( _boost_VER )
if ( Boost_DEBUG )
if ( Boost_DEBUG )
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
@ -600,62 +604,62 @@ ELSE (_boost_IN_CACHE)
endif ( )
endif ( )
# L o o k f o r a s t a n d a r d b o o s t h e a d e r f i l e .
# L o o k f o r a s t a n d a r d b o o s t h e a d e r f i l e .
FIND_PATH ( Boost_INCLUDE_DIR
find_path ( Boost_INCLUDE_DIR
N A M E S b o o s t / c o n f i g . h p p
N A M E S b o o s t / c o n f i g . h p p
H I N T S $ { _ b o o s t _ I N C L U D E _ S E A R C H _ D I R S }
H I N T S $ { _ b o o s t _ I N C L U D E _ S E A R C H _ D I R S }
P A T H _ S U F F I X E S $ { _ b o o s t _ P A T H _ S U F F I X E S }
P A T H _ S U F F I X E S $ { _ b o o s t _ P A T H _ S U F F I X E S }
$ { _ b o o s t _ F I N D _ O P T I O N S }
$ { _ b o o s t _ F I N D _ O P T I O N S }
)
)
ENDIF ( NOT Boost_INCLUDE_DIR )
endif ( NOT Boost_INCLUDE_DIR )
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# E x t r a c t v e r s i o n i n f o r m a t i o n f r o m v e r s i o n . h p p
# E x t r a c t v e r s i o n i n f o r m a t i o n f r o m v e r s i o n . h p p
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IF ( Boost_INCLUDE_DIR )
if ( Boost_INCLUDE_DIR )
# E x t r a c t B o o s t _ V E R S I O N a n d B o o s t _ L I B _ V E R S I O N f r o m v e r s i o n . h p p
# E x t r a c t B o o s t _ V E R S I O N a n d B o o s t _ L I B _ V E R S I O N f r o m v e r s i o n . h p p
# R e a d t h e w h o l e f i l e :
# R e a d t h e w h o l e f i l e :
#
#
SET ( BOOST_VERSION 0 )
set ( BOOST_VERSION 0 )
SET ( BOOST_LIB_VERSION "" )
set ( BOOST_LIB_VERSION "" )
FILE ( READ "${Boost_INCLUDE_DIR}/boost/version.hpp" _boost_VERSION_HPP_CONTENTS )
file ( READ "${Boost_INCLUDE_DIR}/boost/version.hpp" _boost_VERSION_HPP_CONTENTS )
if ( Boost_DEBUG )
if ( Boost_DEBUG )
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
" l o c a t i o n o f v e r s i o n . h p p : $ { B o o s t _ I N C L U D E _ D I R } / b o o s t / v e r s i o n . h p p " )
" l o c a t i o n o f v e r s i o n . h p p : $ { B o o s t _ I N C L U D E _ D I R } / b o o s t / v e r s i o n . h p p " )
endif ( )
endif ( )
STRING ( REGEX REPLACE ".*#define BOOST_VERSION ([0-9]+).*" "\\1" Boost_VERSION "${_boost_VERSION_HPP_CONTENTS}" )
string ( REGEX REPLACE ".*#define BOOST_VERSION ([0-9]+).*" "\\1" Boost_VERSION "${_boost_VERSION_HPP_CONTENTS}" )
STRING ( REGEX REPLACE ".*#define BOOST_LIB_VERSION \" ( [0-9_]+ ) \".*" "\\1" Boost_LIB_VERSION "${_boost_VERSION_HPP_CONTENTS}" )
string ( REGEX REPLACE ".*#define BOOST_LIB_VERSION \" ( [0-9_]+ ) \".*" "\\1" Boost_LIB_VERSION "${_boost_VERSION_HPP_CONTENTS}" )
SET ( Boost_LIB_VERSION ${ Boost_LIB_VERSION } CACHE INTERNAL "The library version string for boost libraries" )
set ( Boost_LIB_VERSION ${ Boost_LIB_VERSION } CACHE INTERNAL "The library version string for boost libraries" )
SET ( Boost_VERSION ${ Boost_VERSION } CACHE INTERNAL "The version number for boost libraries" )
set ( Boost_VERSION ${ Boost_VERSION } CACHE INTERNAL "The version number for boost libraries" )
IF ( NOT "${Boost_VERSION}" STREQUAL "0" )
if ( NOT "${Boost_VERSION}" STREQUAL "0" )
MATH ( EXPR Boost_MAJOR_VERSION "${Boost_VERSION} / 100000" )
math ( EXPR Boost_MAJOR_VERSION "${Boost_VERSION} / 100000" )
MATH ( EXPR Boost_MINOR_VERSION "${Boost_VERSION} / 100 % 1000" )
math ( EXPR Boost_MINOR_VERSION "${Boost_VERSION} / 100 % 1000" )
MATH ( EXPR Boost_SUBMINOR_VERSION "${Boost_VERSION} % 100" )
math ( EXPR Boost_SUBMINOR_VERSION "${Boost_VERSION} % 100" )
set ( Boost_ERROR_REASON
set ( Boost_ERROR_REASON
" $ { B o o s t _ E R R O R _ R E A S O N } B o o s t v e r s i o n : $ { B o o s t _ M A J O R _ V E R S I O N } . $ { B o o s t _ M I N O R _ V E R S I O N } . $ { B o o s t _ S U B M I N O R _ V E R S I O N } \ n B o o s t i n c l u d e p a t h : $ { B o o s t _ I N C L U D E _ D I R } " )
" $ { B o o s t _ E R R O R _ R E A S O N } B o o s t v e r s i o n : $ { B o o s t _ M A J O R _ V E R S I O N } . $ { B o o s t _ M I N O R _ V E R S I O N } . $ { B o o s t _ S U B M I N O R _ V E R S I O N } \ n B o o s t i n c l u d e p a t h : $ { B o o s t _ I N C L U D E _ D I R } " )
ENDIF ( NOT "${Boost_VERSION}" STREQUAL "0" )
endif ( NOT "${Boost_VERSION}" STREQUAL "0" )
if ( Boost_DEBUG )
if ( Boost_DEBUG )
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
message ( STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
" v e r s i o n . h p p r e v e a l s b o o s t "
" v e r s i o n . h p p r e v e a l s b o o s t "
" $ { B o o s t _ M A J O R _ V E R S I O N } . $ { B o o s t _ M I N O R _ V E R S I O N } . $ { B o o s t _ S U B M I N O R _ V E R S I O N } " )
" $ { B o o s t _ M A J O R _ V E R S I O N } . $ { B o o s t _ M I N O R _ V E R S I O N } . $ { B o o s t _ S U B M I N O R _ V E R S I O N } " )
endif ( )
endif ( )
ELSE ( Boost_INCLUDE_DIR )
else ( Boost_INCLUDE_DIR )
set ( Boost_ERROR_REASON
set ( Boost_ERROR_REASON
" $ { B o o s t _ E R R O R _ R E A S O N } U n a b l e t o f i n d t h e B o o s t h e a d e r f i l e s . P l e a s e s e t B O O S T _ R O O T t o t h e r o o t d i r e c t o r y c o n t a i n i n g B o o s t o r B O O S T _ I N C L U D E D I R t o t h e d i r e c t o r y c o n t a i n i n g B o o s t ' s h e a d e r s . " )
" $ { B o o s t _ E R R O R _ R E A S O N } U n a b l e t o f i n d t h e B o o s t h e a d e r f i l e s . P l e a s e s e t B O O S T _ R O O T t o t h e r o o t d i r e c t o r y c o n t a i n i n g B o o s t o r B O O S T _ I N C L U D E D I R t o t h e d i r e c t o r y c o n t a i n i n g B o o s t ' s h e a d e r s . " )
ENDIF ( Boost_INCLUDE_DIR )
endif ( Boost_INCLUDE_DIR )
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# S u f f i x i n i t i a l i z a t i o n a n d c o m p i l e r s u f f i x d e t e c t i o n .
# S u f f i x i n i t i a l i z a t i o n a n d c o m p i l e r s u f f i x d e t e c t i o n .
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# S e t t i n g s o m e m o r e s u f f i x e s f o r t h e l i b r a r y
# S e t t i n g s o m e m o r e s u f f i x e s f o r t h e l i b r a r y
SET ( Boost_LIB_PREFIX "" )
set ( Boost_LIB_PREFIX "" )
if ( WIN32 AND Boost_USE_STATIC_LIBS AND NOT CYGWIN )
if ( WIN32 AND Boost_USE_STATIC_LIBS AND NOT CYGWIN )
SET ( Boost_LIB_PREFIX "lib" )
set ( Boost_LIB_PREFIX "lib" )
endif ( )
endif ( )
if ( Boost_COMPILER )
if ( Boost_COMPILER )
@ -678,54 +682,54 @@ ELSE (_boost_IN_CACHE)
set ( _boost_COMPILER "-il" )
set ( _boost_COMPILER "-il" )
endif ( )
endif ( )
elseif ( MSVC90 )
elseif ( MSVC90 )
SET ( _boost_COMPILER "-vc90" )
set ( _boost_COMPILER "-vc90" )
elseif ( MSVC10 )
elseif ( MSVC10 )
SET ( _boost_COMPILER "-vc100" )
set ( _boost_COMPILER "-vc100" )
elseif ( MSVC80 )
elseif ( MSVC80 )
SET ( _boost_COMPILER "-vc80" )
set ( _boost_COMPILER "-vc80" )
elseif ( MSVC71 )
elseif ( MSVC71 )
SET ( _boost_COMPILER "-vc71" )
set ( _boost_COMPILER "-vc71" )
elseif ( MSVC70 ) # G o o d l u c k !
elseif ( MSVC70 ) # G o o d l u c k !
SET ( _boost_COMPILER "-vc7" ) # y e s , t h i s i s c o r r e c t
set ( _boost_COMPILER "-vc7" ) # y e s , t h i s i s c o r r e c t
elseif ( MSVC60 ) # G o o d l u c k !
elseif ( MSVC60 ) # G o o d l u c k !
SET ( _boost_COMPILER "-vc6" ) # y e s , t h i s i s c o r r e c t
set ( _boost_COMPILER "-vc6" ) # y e s , t h i s i s c o r r e c t
elseif ( BORLAND )
elseif ( BORLAND )
SET ( _boost_COMPILER "-bcb" )
set ( _boost_COMPILER "-bcb" )
elseif ( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "SunPro" )
elseif ( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "SunPro" )
set ( _boost_COMPILER "-sw" )
set ( _boost_COMPILER "-sw" )
elseif ( MINGW )
elseif ( MINGW )
if ( ${ Boost_MAJOR_VERSION } . ${ Boost_MINOR_VERSION } VERSION_LESS 1.34 )
if ( ${ Boost_MAJOR_VERSION } . ${ Boost_MINOR_VERSION } VERSION_LESS 1.34 )
SET ( _boost_COMPILER "-mgw" ) # n o G C C v e r s i o n e n c o d i n g p r i o r t o 1 . 3 4
set ( _boost_COMPILER "-mgw" ) # n o G C C v e r s i o n e n c o d i n g p r i o r t o 1 . 3 4
else ( )
else ( )
_Boost_COMPILER_DUMPVERSION ( _boost_COMPILER_VERSION )
_Boost_COMPILER_DUMPVERSION ( _boost_COMPILER_VERSION )
SET ( _boost_COMPILER "-mgw${_boost_COMPILER_VERSION}" )
set ( _boost_COMPILER "-mgw${_boost_COMPILER_VERSION}" )
endif ( )
endif ( )
elseif ( UNIX )
elseif ( UNIX )
if ( CMAKE_COMPILER_IS_GNUCXX )
if ( CMAKE_COMPILER_IS_GNUCXX )
if ( ${ Boost_MAJOR_VERSION } . ${ Boost_MINOR_VERSION } VERSION_LESS 1.34 )
if ( ${ Boost_MAJOR_VERSION } . ${ Boost_MINOR_VERSION } VERSION_LESS 1.34 )
SET ( _boost_COMPILER "-gcc" ) # n o G C C v e r s i o n e n c o d i n g p r i o r t o 1 . 3 4
set ( _boost_COMPILER "-gcc" ) # n o G C C v e r s i o n e n c o d i n g p r i o r t o 1 . 3 4
else ( )
else ( )
_Boost_COMPILER_DUMPVERSION ( _boost_COMPILER_VERSION )
_Boost_COMPILER_DUMPVERSION ( _boost_COMPILER_VERSION )
# D e t e r m i n e w h i c h v e r s i o n o f G C C w e h a v e .
# D e t e r m i n e w h i c h v e r s i o n o f G C C w e h a v e .
IF ( APPLE )
if ( APPLE )
IF ( Boost_MINOR_VERSION )
if ( Boost_MINOR_VERSION )
IF ( ${ Boost_MINOR_VERSION } GREATER 35 )
if ( ${ Boost_MINOR_VERSION } GREATER 35 )
# I n B o o s t 1 . 3 6 . 0 a n d n e w e r , t h e m a n g l e d c o m p i l e r n a m e u s e d
# I n B o o s t 1 . 3 6 . 0 a n d n e w e r , t h e m a n g l e d c o m p i l e r n a m e u s e d
# o n M a c O S X / D a r w i n i s " x g c c " .
# o n M a c O S X / D a r w i n i s " x g c c " .
SET ( _boost_COMPILER "-xgcc${_boost_COMPILER_VERSION}" )
set ( _boost_COMPILER "-xgcc${_boost_COMPILER_VERSION}" )
ELSE ( ${ Boost_MINOR_VERSION } GREATER 35 )
else ( ${ Boost_MINOR_VERSION } GREATER 35 )
# I n B o o s t < = 1 . 3 5 . 0 , t h e r e i s n o m a n g l e d c o m p i l e r n a m e f o r
# I n B o o s t < = 1 . 3 5 . 0 , t h e r e i s n o m a n g l e d c o m p i l e r n a m e f o r
# t h e M a c O S X / D a r w i n v e r s i o n o f G C C .
# t h e M a c O S X / D a r w i n v e r s i o n o f G C C .
SET ( _boost_COMPILER "" )
set ( _boost_COMPILER "" )
ENDIF ( ${ Boost_MINOR_VERSION } GREATER 35 )
endif ( ${ Boost_MINOR_VERSION } GREATER 35 )
ELSE ( Boost_MINOR_VERSION )
else ( Boost_MINOR_VERSION )
# W e d o n ' t k n o w t h e B o o s t v e r s i o n , s o a s s u m e i t ' s
# W e d o n ' t k n o w t h e B o o s t v e r s i o n , s o a s s u m e i t ' s
# p r e - 1 . 3 6 . 0 .
# p r e - 1 . 3 6 . 0 .
SET ( _boost_COMPILER "" )
set ( _boost_COMPILER "" )
ENDIF ( Boost_MINOR_VERSION )
endif ( Boost_MINOR_VERSION )
ELSE ( )
else ( )
SET ( _boost_COMPILER "-gcc${_boost_COMPILER_VERSION}" )
set ( _boost_COMPILER "-gcc${_boost_COMPILER_VERSION}" )
ENDIF ( )
endif ( )
endif ( )
endif ( )
endif ( CMAKE_COMPILER_IS_GNUCXX )
endif ( CMAKE_COMPILER_IS_GNUCXX )
endif ( )
endif ( )
@ -916,6 +920,7 @@ ELSE (_boost_IN_CACHE)
$ { B o o s t _ L I B _ P R E F I X } b o o s t _ $ { C O M P O N E N T } $ { _ b o o s t _ C O M P I L E R } $ { _ b o o s t _ M U L T I T H R E A D E D } $ { _ b o o s t _ D E B U G _ A B I _ T A G } - $ { B o o s t _ L I B _ V E R S I O N }
$ { B o o s t _ L I B _ P R E F I X } b o o s t _ $ { C O M P O N E N T } $ { _ b o o s t _ C O M P I L E R } $ { _ b o o s t _ M U L T I T H R E A D E D } $ { _ b o o s t _ D E B U G _ A B I _ T A G } - $ { B o o s t _ L I B _ V E R S I O N }
$ { B o o s t _ L I B _ P R E F I X } b o o s t _ $ { C O M P O N E N T } $ { _ b o o s t _ C O M P I L E R } $ { _ b o o s t _ M U L T I T H R E A D E D } $ { _ b o o s t _ D E B U G _ A B I _ T A G }
$ { B o o s t _ L I B _ P R E F I X } b o o s t _ $ { C O M P O N E N T } $ { _ b o o s t _ C O M P I L E R } $ { _ b o o s t _ M U L T I T H R E A D E D } $ { _ b o o s t _ D E B U G _ A B I _ T A G }
$ { B o o s t _ L I B _ P R E F I X } b o o s t _ $ { C O M P O N E N T } $ { _ b o o s t _ M U L T I T H R E A D E D } $ { _ b o o s t _ D E B U G _ A B I _ T A G } - $ { B o o s t _ L I B _ V E R S I O N }
$ { B o o s t _ L I B _ P R E F I X } b o o s t _ $ { C O M P O N E N T } $ { _ b o o s t _ M U L T I T H R E A D E D } $ { _ b o o s t _ D E B U G _ A B I _ T A G } - $ { B o o s t _ L I B _ V E R S I O N }
$ { B o o s t _ L I B _ P R E F I X } b o o s t _ $ { C O M P O N E N T } $ { _ b o o s t _ M U L T I T H R E A D E D } $ { _ b o o s t _ D E B U G _ A B I _ T A G }
$ { B o o s t _ L I B _ P R E F I X } b o o s t _ $ { C O M P O N E N T } $ { _ b o o s t _ M U L T I T H R E A D E D }
$ { B o o s t _ L I B _ P R E F I X } b o o s t _ $ { C O M P O N E N T } $ { _ b o o s t _ M U L T I T H R E A D E D }
$ { B o o s t _ L I B _ P R E F I X } b o o s t _ $ { C O M P O N E N T } )
$ { B o o s t _ L I B _ P R E F I X } b o o s t _ $ { C O M P O N E N T } )
if ( _boost_STATIC_RUNTIME_WORKAROUND )
if ( _boost_STATIC_RUNTIME_WORKAROUND )
@ -957,13 +962,13 @@ ELSE (_boost_IN_CACHE)
# E n d f i n d i n g b o o s t l i b r a r i e s
# E n d f i n d i n g b o o s t l i b r a r i e s
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SET ( Boost_INCLUDE_DIRS
set ( Boost_INCLUDE_DIRS
$ { B o o s t _ I N C L U D E _ D I R }
$ { B o o s t _ I N C L U D E _ D I R }
)
)
SET ( Boost_FOUND FALSE )
set ( Boost_FOUND FALSE )
IF ( Boost_INCLUDE_DIR )
if ( Boost_INCLUDE_DIR )
SET ( Boost_FOUND TRUE )
set ( Boost_FOUND TRUE )
# C h e c k t h e v e r s i o n o f B o o s t a g a i n s t t h e r e q u e s t e d v e r s i o n .
# C h e c k t h e v e r s i o n o f B o o s t a g a i n s t t h e r e q u e s t e d v e r s i o n .
if ( Boost_FIND_VERSION AND NOT Boost_FIND_VERSION_MINOR )
if ( Boost_FIND_VERSION AND NOT Boost_FIND_VERSION_MINOR )
@ -1036,7 +1041,7 @@ ELSE (_boost_IN_CACHE)
string ( TOLOWER ${ COMPONENT } COMPONENT )
string ( TOLOWER ${ COMPONENT } COMPONENT )
list ( APPEND _Boost_MISSING_COMPONENTS ${ COMPONENT } )
list ( APPEND _Boost_MISSING_COMPONENTS ${ COMPONENT } )
set ( Boost_FOUND FALSE )
set ( Boost_FOUND FALSE )
endif ( NOT Boost_ ${ COMPONENT } _FOUND )
endif ( )
endforeach ( COMPONENT )
endforeach ( COMPONENT )
if ( Boost_DEBUG )
if ( Boost_DEBUG )
@ -1057,67 +1062,67 @@ ELSE (_boost_IN_CACHE)
list ( LENGTH _Boost_MISSING_COMPONENTS Boost_NUM_MISSING_COMPONENTS )
list ( LENGTH _Boost_MISSING_COMPONENTS Boost_NUM_MISSING_COMPONENTS )
if ( ${ Boost_NUM_COMPONENTS_WANTED } EQUAL ${ Boost_NUM_MISSING_COMPONENTS } )
if ( ${ Boost_NUM_COMPONENTS_WANTED } EQUAL ${ Boost_NUM_MISSING_COMPONENTS } )
set ( Boost_ERROR_REASON
set ( Boost_ERROR_REASON
" $ { B o o s t _ E R R O R _ R E A S O N } N o B o o s t l i b r a r i e s w e r e f o u n d . Y o u m a y n e e d t o s e t B oo s t _ L I B R A R Y D I R t o t h e d i r e c t o r y c o n t a i n i n g B o o s t l i b r a r i e s o r B O O S T _ R O O T t o t h e l o c a t i o n o f B o o s t . " )
" $ { B o o s t _ E R R O R _ R E A S O N } N o B o o s t l i b r a r i e s w e r e f o u n d . Y o u m a y n e e d t o s e t B OO S T _ L I B R A R Y D I R t o t h e d i r e c t o r y c o n t a i n i n g B o o s t l i b r a r i e s o r B O O S T _ R O O T t o t h e l o c a t i o n o f B o o s t . " )
else ( ${ Boost_NUM_COMPONENTS_WANTED } EQUAL ${ Boost_NUM_MISSING_COMPONENTS } )
else ( ${ Boost_NUM_COMPONENTS_WANTED } EQUAL ${ Boost_NUM_MISSING_COMPONENTS } )
set ( Boost_ERROR_REASON
set ( Boost_ERROR_REASON
" $ { B o o s t _ E R R O R _ R E A S O N } Some ( but not all ) o f t h e r e q u i r e d B o o s t l i b r a r i e s w e r e f o u n d . Y o u m a y n e e d t o i n s t a l l t h e s e a d d i t i o n a l B o o s t l i b r a r i e s . A l t e r n a t i v e l y , s e t B oo s t _ L I B R A R Y D I R t o t h e d i r e c t o r y c o n t a i n i n g B o o s t l i b r a r i e s o r B O O S T _ R O O T t o t h e l o c a t i o n o f B o o s t . " )
" $ { B o o s t _ E R R O R _ R E A S O N } Some ( but not all ) o f t h e r e q u i r e d B o o s t l i b r a r i e s w e r e f o u n d . Y o u m a y n e e d t o i n s t a l l t h e s e a d d i t i o n a l B o o s t l i b r a r i e s . A l t e r n a t i v e l y , s e t B OO S T _ L I B R A R Y D I R t o t h e d i r e c t o r y c o n t a i n i n g B o o s t l i b r a r i e s o r B O O S T _ R O O T t o t h e l o c a t i o n o f B o o s t . " )
endif ( ${ Boost_NUM_COMPONENTS_WANTED } EQUAL ${ Boost_NUM_MISSING_COMPONENTS } )
endif ( ${ Boost_NUM_COMPONENTS_WANTED } EQUAL ${ Boost_NUM_MISSING_COMPONENTS } )
endif ( _Boost_MISSING_COMPONENTS )
endif ( _Boost_MISSING_COMPONENTS )
IF ( NOT Boost_LIBRARY_DIRS AND NOT _boost_CHECKED_COMPONENT )
if ( NOT Boost_LIBRARY_DIRS AND NOT _boost_CHECKED_COMPONENT )
# C o m p a t i b i l i t y C o d e f o r b a c k w a r d s c o m p a t i b i l i t y w i t h C M a k e
# C o m p a t i b i l i t y C o d e f o r b a c k w a r d s c o m p a t i b i l i t y w i t h C M a k e
# 2 . 4 ' s F i n d B o o s t m o d u l e .
# 2 . 4 ' s F i n d B o o s t m o d u l e .
# L o o k f o r t h e b o o s t l i b r a r y p a t h .
# L o o k f o r t h e b o o s t l i b r a r y p a t h .
# N o t e t h a t t h e u s e r m a y n o t h a v e i n s t a l l e d a n y l i b r a r i e s
# N o t e t h a t t h e u s e r m a y n o t h a v e i n s t a l l e d a n y l i b r a r i e s
# s o i t i s q u i t e p o s s i b l e t h e B o o s t _ L I B R A R Y _ P A T H m a y n o t e x i s t .
# s o i t i s q u i t e p o s s i b l e t h e B o o s t _ L I B R A R Y _ P A T H m a y n o t e x i s t .
SET ( _boost_LIB_DIR ${ Boost_INCLUDE_DIR } )
set ( _boost_LIB_DIR ${ Boost_INCLUDE_DIR } )
IF ( "${_boost_LIB_DIR}" MATCHES "boost-[0-9]+" )
if ( "${_boost_LIB_DIR}" MATCHES "boost-[0-9]+" )
GET_FILENAME_COMPONENT ( _boost_LIB_DIR ${ _boost_LIB_DIR } PATH )
get_filename_component ( _boost_LIB_DIR ${ _boost_LIB_DIR } PATH )
ENDIF ( "${_boost_LIB_DIR}" MATCHES "boost-[0-9]+" )
endif( )
IF ( "${_boost_LIB_DIR}" MATCHES "/include$" )
if ( "${_boost_LIB_DIR}" MATCHES "/include$" )
# S t r i p o f f t h e t r a i l i n g " / i n c l u d e " i n t h e p a t h .
# S t r i p o f f t h e t r a i l i n g " / i n c l u d e " i n t h e p a t h .
GET_FILENAME_COMPONENT ( _boost_LIB_DIR ${ _boost_LIB_DIR } PATH )
get_filename_component ( _boost_LIB_DIR ${ _boost_LIB_DIR } PATH )
ENDIF( "${_boost_LIB_DIR}" MATCHES "/include$" )
endif( )
IF ( EXISTS "${_boost_LIB_DIR}/lib" )
if ( EXISTS "${_boost_LIB_DIR}/lib" )
SET ( _boost_LIB_DIR ${ _boost_LIB_DIR } /lib )
set ( _boost_LIB_DIR ${ _boost_LIB_DIR } /lib )
ELSE( EXISTS "${_boost_LIB_DIR}/lib" )
else( )
IF ( EXISTS "${_boost_LIB_DIR}/stage/lib" )
if ( EXISTS "${_boost_LIB_DIR}/stage/lib" )
SET ( _boost_LIB_DIR ${ _boost_LIB_DIR } /stage/lib )
set ( _boost_LIB_DIR ${ _boost_LIB_DIR } /stage/lib )
ELSE( EXISTS "${_boost_LIB_DIR}/stage/lib" )
else( )
SET ( _boost_LIB_DIR "" )
set ( _boost_LIB_DIR "" )
ENDIF( EXISTS "${_boost_LIB_DIR}/stage/lib" )
endif( )
ENDIF( EXISTS "${_boost_LIB_DIR}/lib" )
endif( )
IF ( _boost_LIB_DIR AND EXISTS "${_boost_LIB_DIR}" )
if ( _boost_LIB_DIR AND EXISTS "${_boost_LIB_DIR}" )
SET ( Boost_LIBRARY_DIRS ${ _boost_LIB_DIR } CACHE FILEPATH "Boost library directory" )
set ( Boost_LIBRARY_DIRS ${ _boost_LIB_DIR } CACHE FILEPATH "Boost library directory" )
ENDIF( _boost_LIB_DIR AND EXISTS "${_boost_LIB_DIR}" )
endif( )
ENDIF ( NOT Boost_LIBRARY_DIRS AND NOT _boost_CHECKED_COMPONENT )
endif ( NOT Boost_LIBRARY_DIRS AND NOT _boost_CHECKED_COMPONENT )
ELSE ( Boost_INCLUDE_DIR )
else ( Boost_INCLUDE_DIR )
SET ( Boost_FOUND FALSE )
set ( Boost_FOUND FALSE )
ENDIF ( Boost_INCLUDE_DIR )
endif ( Boost_INCLUDE_DIR )
IF ( Boost_FOUND )
if ( Boost_FOUND )
IF ( NOT Boost_FIND_QUIETLY )
if ( NOT Boost_FIND_QUIETLY )
MESSAGE ( STATUS "Boost version: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}" )
message ( STATUS "Boost version: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}" )
if ( Boost_FIND_COMPONENTS )
if ( Boost_FIND_COMPONENTS )
message ( STATUS "Found the following Boost libraries:" )
message ( STATUS "Found the following Boost libraries:" )
endif ( )
endif ( )
ENDIF ( NOT Boost_FIND_QUIETLY )
endif ( NOT Boost_FIND_QUIETLY )
FOREACH ( COMPONENT ${ Boost_FIND_COMPONENTS } )
foreach ( COMPONENT ${ Boost_FIND_COMPONENTS } )
STRING ( TOUPPER ${ COMPONENT } UPPERCOMPONENT )
string ( TOUPPER ${ COMPONENT } UPPERCOMPONENT )
IF ( Boost_ ${ UPPERCOMPONENT } _FOUND )
if ( Boost_ ${ UPPERCOMPONENT } _FOUND )
IF ( NOT Boost_FIND_QUIETLY )
if ( NOT Boost_FIND_QUIETLY )
MESSAGE ( STATUS " ${COMPONENT}" )
message ( STATUS " ${COMPONENT}" )
ENDIF ( NOT Boost_FIND_QUIETLY )
endif ( NOT Boost_FIND_QUIETLY )
SET ( Boost_LIBRARIES ${ Boost_LIBRARIES } ${ Boost_${UPPERCOMPONENT } _LIBRARY} )
set ( Boost_LIBRARIES ${ Boost_LIBRARIES } ${ Boost_${UPPERCOMPONENT } _LIBRARY} )
ENDIF ( Boost_ ${ UPPERCOMPONENT } _FOUND )
endif ( Boost_ ${ UPPERCOMPONENT } _FOUND )
ENDFOREACH ( COMPONENT )
endforeach ( COMPONENT )
else ( )
else ( )
if ( Boost_FIND_REQUIRED )
if ( Boost_FIND_REQUIRED )
message ( SEND_ERROR "Unable to find the requested Boost libraries.\n${Boost_ERROR_REASON}" )
message ( SEND_ERROR "Unable to find the requested Boost libraries.\n${Boost_ERROR_REASON}" )
@ -1137,9 +1142,8 @@ ELSE (_boost_IN_CACHE)
endif ( )
endif ( )
# s h o w t h e B o o s t _ I N C L U D E _ D I R S A N D B o o s t _ L I B R A R I E S v a r i a b l e s o n l y i n t h e a d v a n c e d v i e w
# s h o w t h e B o o s t _ I N C L U D E _ D I R S A N D B o o s t _ L I B R A R I E S v a r i a b l e s o n l y i n t h e a d v a n c e d v i e w
MARK_AS_ADVANCED ( Boost_INCLUDE_DIR
mark_as_advanced ( Boost_INCLUDE_DIR
B o o s t _ I N C L U D E _ D I R S
B o o s t _ I N C L U D E _ D I R S
B o o s t _ L I B R A R Y _ D I R S
B o o s t _ L I B R A R Y _ D I R S
)
)
ENDIF ( _boost_IN_CACHE )
endif ( _boost_IN_CACHE )