]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
[bos #41189][Windows] Ensure that gmshd is picked if GMSHPLUGIN is built in debug... bos/41189 5/head
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 22 Mar 2024 10:01:28 +0000 (11:01 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 22 Mar 2024 10:01:28 +0000 (11:01 +0100)
cmake/FindGMSH.cmake

index 9c2698ef0583e26662ee801e283352b03f5baaca..214b12bd3027c4f375df66afa9d49ef2c7b1d4f3 100644 (file)
@@ -42,7 +42,11 @@ IF(GMSH_INCLUDE_DIRS)
   GET_FILENAME_COMPONENT(GMSH_INCLUDE_DIRS_UP ${GMSH_INCLUDE_DIRS} DIRECTORY)
   LIST(APPEND GMSH_INCLUDE_DIRS "${GMSH_INCLUDE_DIRS_UP}")
 ENDIF()
-FIND_LIBRARY(GMSH_LIBRARIES NAMES Gmsh gmsh gmshd)
 
+IF(WIN32 AND CMAKE_BUILD_TYPE STREQUAL Debug)
+  FIND_LIBRARY(GMSH_LIBRARIES NAMES gmshd)
+ELSE()
+  FIND_LIBRARY(GMSH_LIBRARIES NAMES Gmsh gmsh gmshd)
+ENDIF()
 INCLUDE(FindPackageHandleStandardArgs)
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMSH REQUIRED_VARS GMSH_INCLUDE_DIRS GMSH_LIBRARIES)