From b7cb2f8a423fc69f5a85365c63d13d953c35e430 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 24 Nov 2011 14:15:02 +0000 Subject: [PATCH] Fix pb of undefined symbols in SMESH MEFISTO library when compiling with cmake - linking to libf2c libbrary is required. --- salome_adm/cmake_files/am2cmake.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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) ''') # -- -- 2.39.2