Skip to content

Commit

Permalink
[OMSI] fix the search lib path for sundial
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#3003
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed Mar 27, 2019
1 parent a356daf commit 9c7d828
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SimulationRuntime/OMSI/solver/CMakeLists.txt
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

0 comments on commit 9c7d828

Please sign in to comment.