From 88bff3f5cfa3efa7c28ab3d8765f8bd79b1df1b7 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sun, 5 May 2013 10:00:32 -0700 Subject: [PATCH] Making -fPIC the default Fixes #211 --- cpp/BoostParts/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/BoostParts/CMakeLists.txt b/cpp/BoostParts/CMakeLists.txt index a9f22e09..1849bbf6 100644 --- a/cpp/BoostParts/CMakeLists.txt +++ b/cpp/BoostParts/CMakeLists.txt @@ -106,8 +106,8 @@ endif() ############################################################################# -# Linking fails without this -if( NOT WIN32 AND 64_BIT_PLATFORM ) +if( NOT WIN32 ) + # Linking fails without this on some platforms, notably anything x64. set_target_properties( BoostParts PROPERTIES COMPILE_FLAGS "-fPIC") endif()