From: vsr Date: Thu, 24 Nov 2011 14:15:02 +0000 (+0000) Subject: Fix pb of undefined symbols in SMESH MEFISTO library when compiling with cmake -... X-Git-Tag: V6_4_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FV6_4_BR;p=modules%2Fkernel.git Fix pb of undefined symbols in SMESH MEFISTO library when compiling with cmake - linking to libf2c libbrary is required. --- diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index f58309bc1..b93e4bfaf 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -1726,6 +1726,14 @@ class CMakeFile(object): SET(libadd ${libadd} ${dir}/LIBI77.lib) ENDIF(name STREQUAL ${target}) ENDFOREACH(target ${targets}) + ELSE(WINDOWS) + SET(targets) + SET(targets ${targets} MEFISTO2D) + FOREACH(target ${targets}) + IF(name STREQUAL ${target}) + SET(libadd ${libadd} -lf2c) + ENDIF(name STREQUAL ${target}) + ENDFOREACH(target ${targets}) ENDIF(WINDOWS) ''') # --