Skip to content

Commit

Permalink
Merge pull request #3 from inati/master
Browse files Browse the repository at this point in the history
Change to shared linking to Boost on Mac and Linux.
  • Loading branch information
hansenms committed Jul 15, 2015
2 parents 5a06e1c + 2e3bf79 commit c85307e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,15 @@ if(WIN32)
set(Boost_NO_BOOST_CMAKE ON)
endif(WIN32)

# Added for static linking!!!
set(Boost_USE_STATIC_LIBS ON)

# Added for static linking!!!
if (BUILD_DYNAMIC)
set(Boost_USE_STATIC_LIBS OFF)
message("Building dynamically linked application.")
else (BUILD_DYNAMIC)
set(Boost_USE_STATIC_LIBS ON)
message("Building statically linked application.")
endif(BUILD_DYNAMIC)

find_package(Boost COMPONENTS thread system program_options filesystem REQUIRED)
find_package(Ismrmrd REQUIRED)

Expand Down

0 comments on commit c85307e

Please sign in to comment.