parent
263b405ab4
commit
719b497daa
@ -107,7 +107,7 @@ endif()
|
||||
#############################################################################
|
||||
|
||||
# Linking fails without this
|
||||
if( NOT WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" )
|
||||
if( NOT WIN32 AND 64_BIT_PLATFORM )
|
||||
set_target_properties( BoostParts PROPERTIES COMPILE_FLAGS "-fPIC")
|
||||
endif()
|
||||
|
||||
|
@ -83,12 +83,10 @@ else()
|
||||
endif()
|
||||
|
||||
# Check if platform is 64 bit
|
||||
if( NOT APPLE )
|
||||
if( CMAKE_SIZEOF_VOID_P EQUAL 4 )
|
||||
set( 64_BIT_PLATFORM 0 )
|
||||
else()
|
||||
set( 64_BIT_PLATFORM 1 )
|
||||
endif()
|
||||
if( CMAKE_SIZEOF_VOID_P EQUAL 4 )
|
||||
set( 64_BIT_PLATFORM 0 )
|
||||
else()
|
||||
set( 64_BIT_PLATFORM 1 )
|
||||
endif()
|
||||
|
||||
add_subdirectory( BoostParts )
|
||||
|
Loading…
Reference in New Issue
Block a user