Skip to content

Commit

Permalink
Update Mac OS X port
Browse files Browse the repository at this point in the history
* follow comments to fix bugs
  • Loading branch information
gangliao committed Sep 29, 2016
1 parent 54c37ab commit 8ddc5fa
Show file tree
Hide file tree
Showing 13 changed files with 259 additions and 232 deletions.
4 changes: 2 additions & 2 deletions cmake/cblas.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ set(ATLAS_LIB_SEARCH_PATHS
/usr/lib
/usr/lib/blas/atlas
/usr/lib/atlas
/usr/lib/atlas-base) # special for ubuntu 14.04.

/usr/lib/atlas-base # special for ubuntu 14.04.
)
find_path(ATLAS_INC_DIR NAMES cblas.h
PATHS ${ATLAS_INCLUDE_SEARCH_PATHS})
find_library(ATLAS_CBLAS_LIB NAMES cblas libcblas.so.3
Expand Down
4 changes: 3 additions & 1 deletion cmake/util.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ function(target_circle_link_libraries TARGET_NAME)
list(APPEND libsInArgn ${arg})
endif()
endforeach()

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
list(APPEND LIBS "-undefined dynamic_lookup")
endif()
list(REVERSE libsInArgn)
target_link_libraries(${TARGET_NAME}
${LIBS}
Expand Down
Loading

0 comments on commit 8ddc5fa

Please sign in to comment.