From 67cd2983b843efeb40cf6f390fa46b25e1de9561 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@uliege.be> Date: Tue, 25 Aug 2020 14:08:40 +0200 Subject: [PATCH] in gmsh.jl on Windows, search for lib name with .dll appended (cf. #962) --- api/GenApi.py | 2 +- api/gmsh.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/GenApi.py b/api/GenApi.py index ec17869232..65a68a7cec 100644 --- a/api/GenApi.py +++ b/api/GenApi.py @@ -1513,7 +1513,7 @@ class API: f.write( 'const libname = Sys.iswindows() ? "' + ns + '-{0}.{1}'.format(self.version_major, self.version_minor) + - '" : "lib' + ns + '"\n') + '.dll" : "lib' + ns + '"\n') f.write('import Libdl\n') f.write( 'const lib = Libdl.find_library([libname], [libdir])\n') diff --git a/api/gmsh.jl b/api/gmsh.jl index dbb6c476e0..78997205be 100644 --- a/api/gmsh.jl +++ b/api/gmsh.jl @@ -21,7 +21,7 @@ const GMSH_API_VERSION = "4.7" const GMSH_API_VERSION_MAJOR = 4 const GMSH_API_VERSION_MINOR = 7 const libdir = dirname(@__FILE__) -const libname = Sys.iswindows() ? "gmsh-4.7" : "libgmsh" +const libname = Sys.iswindows() ? "gmsh-4.7.dll" : "libgmsh" import Libdl const lib = Libdl.find_library([libname], [libdir]) -- GitLab