Skip to content

Commit

Permalink
Had to add c++lib to wrapper compile flags
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
chryswoods committed Jan 9, 2017
1 parent 0898e1b commit 594cac3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wrapper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ message( STATUS "Compiling the python wrappers using a SMALL build." )
set( CMAKE_C_FLAGS ${SIRE_C_FLAGS_SMALL} )
set( CMAKE_CXX_FLAGS ${SIRE_CXX_FLAGS_SMALL} )

if (SIRE_HAS_CPP_LIB)
message(STATUS "Using libc++ in place of libstdc++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()

set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${SIRE_SHARE_LINK_FLAGS}" )
set( CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} ${SIRE_STATIC_LINK_FLAGS}" )
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${SIRE_EXE_LINK_FLAGS}" )
Expand Down

0 comments on commit 594cac3

Please sign in to comment.