Skip to content

Commit

Permalink
Link to static BOOST libs, to create platform independent binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Herridge committed Jan 14, 2018
1 parent 9ea7396 commit 112e161
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ if(STATIC)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_RUNTIME ON)
endif()
if(APPLE)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_RUNTIME ON)
endif()
find_package(Boost 1.55 REQUIRED COMPONENTS system filesystem thread date_time chrono regex serialization program_options)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
if(MINGW)
Expand Down

0 comments on commit 112e161

Please sign in to comment.