Commit a6a88919 authored by Sylvain Thery's avatar Sylvain Thery

OpenNL dylib compiling bug

parent 39827e0e
......@@ -25,6 +25,9 @@ IF(USE_SUPERLU)
ENDIF(USE_SUPERLU)
IF(USE_CHOLMOD)
IF (APPLE)
FIND_LIBRARY(CHOL_DEPS Accelerate)
ENDIF (APPLE)
ADD_DEFINITIONS(-DNL_USE_CHOLMOD)
INCLUDE_DIRECTORIES(${SUITESPARSE_INCLUDE_DIRS})
ENDIF(USE_CHOLMOD)
......@@ -41,8 +44,14 @@ IF(USE_CNC)
CUDA_ADD_CUBLAS_TO_TARGET(nl)
ELSE(USE_CNC)
IF(WIN32)
ADD_LIBRARY(nl ${SOURCES} ${HeaderFiles})
ADD_LIBRARY(nl ${SOURCES} ${HeaderFiles})
ELSE(WIN32)
ADD_LIBRARY(nl ${SOURCES} )
ADD_LIBRARY(nl ${SOURCES} )
IF(USE_CHOLMOD)
TARGET_LINK_LIBRARIES(nl ${SUITESPARSE_LIBRARIES} ${CHOL_DEPS})
ENDIF(USE_CHOLMOD)
IF(USE_SUPERLU)
TARGET_LINK_LIBRARIES(nl ${SUPERLU_LIBRARIES})
ENDIF(USE_SUPERLU)
ENDIF(WIN32)
ENDIF(USE_CNC)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment