Skip to content

Commit

Permalink
On macOS -static flag not needed just list of .a files
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Sep 3, 2018
1 parent b8db177 commit e7fe046
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ option(STATIC_BUILD "Create static build" OFF)
set(link_param "")
if (STATIC_BUILD)
set(Boost_USE_STATIC_LIBS ON)
set(link_param "-static")
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(link_param "-static")
endif()
endif()

# List of families to build
Expand Down

0 comments on commit e7fe046

Please sign in to comment.