Skip to content

Commit

Permalink
Compile STIR with C++11 but force boost::shared_ptr
Browse files Browse the repository at this point in the history
Current STIR master will use std::shared_ptr by default when using
C++-11. That breaks SIRF (see Issue #60). As work-around, we force
usage of boost::shared_ptr.

It might not be necessary to compile STIR with C++11, but
it now has some ugly work-arounds related to unique_ptr if that isn't
available which can break SIRF.
  • Loading branch information
KrisThielemans committed Sep 23, 2017
1 parent 82d60a9 commit 7478a64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SuperBuild/External_STIR.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ if(NOT ( DEFINED "USE_SYSTEM_${externalProjName}" AND "${USE_SYSTEM_${externalPr
-DBOOST_ROOT=${BOOST_ROOT}
-DCMAKE_INSTALL_PREFIX=${STIR_Install_Dir}
-DGRAPHICS=None
-DCMAKE_CXX_STANDARD=11
-DSTIR_USE_BOOST_SHARED_PTR=On
INSTALL_DIR ${STIR_Install_Dir}
DEPENDS
${${proj}_DEPENDENCIES}
Expand Down

0 comments on commit 7478a64

Please sign in to comment.