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

Commit 9c7d828

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
[OMSI] fix the search lib path for sundial
Belonging to [master]: - #3003
1 parent a356daf commit 9c7d828

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SimulationRuntime/OMSI/solver/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ ENDIF(MSVC)
3333

3434
# Find SUNDIALS KINSOL libraries
3535
FIND_LIBRARY(KINSOL_LIBRARIE sundials_kinsol
36-
PATH ${CMAKE_INSTALL_PREFIX}/${LIB_OMC})
36+
PATHS ${CMAKE_INSTALL_PREFIX}/${LIB_OMC}
37+
NO_DEFAULT_PATH)
3738
IF (NOT KINSOL_LIBRARIE)
3839
MESSAGE(FATAL_ERROR "Error: SUNDIALS KINSOL library not found!")
3940
ENDIF()
4041

4142
FIND_LIBRARY(SUNDIALS_NVEC_LIBRARIE sundials_nvecserial
42-
PATH ${CMAKE_INSTALL_PREFIX}/${LIB_OMC})
43+
PATHS ${CMAKE_INSTALL_PREFIX}/${LIB_OMC}
44+
NO_DEFAULT_PATH)
4345
IF(NOT SUNDIALS_NVEC_LIBRARIE)
4446
MESSAGE(FATAL_ERROR "Error: sundials_nvec_serial library not found!")
4547
ENDIF()

0 commit comments

Comments
 (0)