Skip to content

Commit 90f448d

Browse files
committed
Search for correct FMI Library name on Windows
This commit was cherry-picked from master. Conflicts: external/cppzmq
1 parent 67f05a0 commit 90f448d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/FindFMILIB.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ endif ()
5252
# Find shared/import library and append its path prefix to the HINTS option.
5353
if (UNIX)
5454
set (CMAKE_FIND_LIBRARY_SUFFIXES ".so")
55+
set (_FMILIB_shlibs "fmilib_shared" "fmilib2" "fmilib")
56+
else ()
57+
set (_FMILIB_shlibs "fmilib_shared")
5558
endif ()
5659
find_library (FMILIB_SHARED_LIBRARY
57-
NAMES "fmilib2" "fmilib"
60+
NAMES ${_FMILIB_shlibs}
5861
${_FMILIB_hints}
5962
PATHS ${FMILIB_DIR} $ENV{FMILIB_DIR}
6063
PATH_SUFFIXES "lib")

0 commit comments

Comments
 (0)