From 58f4f559c87b2d24b273bcf4da62374f77ff89c8 Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Fri, 30 Nov 2018 16:03:27 +0000 Subject: [PATCH] Remove dependency on boost libs --- src/Registration/cReg/CMakeLists.txt | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Registration/cReg/CMakeLists.txt b/src/Registration/cReg/CMakeLists.txt index 91b06a0cc..8c9c9b8e9 100644 --- a/src/Registration/cReg/CMakeLists.txt +++ b/src/Registration/cReg/CMakeLists.txt @@ -33,20 +33,6 @@ ENDIF() ADD_LIBRARY(SIRFReg ${SOURCES}) #TARGET_LINK_LIBRARIES(SIRFReg SIRF_common) -# Boost -if((CMAKE_VERSION VERSION_LESS 3.5.0) OR (NOT _Boost_IMPORTED_TARGETS)) - # This is harder than it should be on older CMake versions to be able to cope with - # spaces in filenames. - INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) - foreach(C SYSTEM FILESYSTEM) - target_link_libraries(SIRFReg optimized "${Boost_${C}_LIBRARY_RELEASE}") - target_link_libraries(SIRFReg debug "${Boost_${C}_LIBRARY_DEBUG}") - endforeach() -else() - # Nice and simple for recent CMake (which knows about your Boost version) - target_link_libraries(SIRFReg Boost::system Boost::filesystem) -endif() - # Link against stir and gadgetron TARGET_LINK_LIBRARIES(SIRFReg cstir) #TARGET_LINK_LIBRARIES(SIRFReg cgadgetron)