Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

[OMSI] fix the search lib path for sundial #3003

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions SimulationRuntime/OMSI/solver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ ENDIF(MSVC)

# Find SUNDIALS KINSOL libraries
FIND_LIBRARY(KINSOL_LIBRARIE sundials_kinsol
PATH ${CMAKE_INSTALL_PREFIX}/${LIB_OMC})
PATHS ${CMAKE_INSTALL_PREFIX}/${LIB_OMC}
NO_DEFAULT_PATH)
IF (NOT KINSOL_LIBRARIE)
MESSAGE(FATAL_ERROR "Error: SUNDIALS KINSOL library not found!")
ENDIF()

FIND_LIBRARY(SUNDIALS_NVEC_LIBRARIE sundials_nvecserial
PATH ${CMAKE_INSTALL_PREFIX}/${LIB_OMC})
PATHS ${CMAKE_INSTALL_PREFIX}/${LIB_OMC}
NO_DEFAULT_PATH)
IF(NOT SUNDIALS_NVEC_LIBRARIE)
MESSAGE(FATAL_ERROR "Error: sundials_nvec_serial library not found!")
ENDIF()
Expand Down