Skip to content

Commit

Permalink
cmake: remove special stdlib on apple (no longer needed for ChunkedAr…
Browse files Browse the repository at this point in the history
…ray compilation)
  • Loading branch information
ukoethe committed Apr 10, 2014
1 parent 0ae387a commit c91722c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions vigranumpy/src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ ENDIF()
if(NOT MSVC)
IF (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7.0")
SET(CMAKE_CXX_FLAGS "-pthread -std=c++0x ${CMAKE_CXX_FLAGS}")
else()
elseif(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "-pthread -std=c++11 ${CMAKE_CXX_FLAGS}")
else()
SET(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
endif()
endif()

if(APPLE)
SET(CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}")
endif()
# if(APPLE)
# SET(CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}")
# endif()

# note special treatment of target vigranumpy_core:
# module name is automatically changed into vigranumpycore
Expand Down

0 comments on commit c91722c

Please sign in to comment.