Commit c0076f4a authored by jcfr's avatar jcfr
Browse files

COMP: Superbuild - NUMPY - In the generated site.cfg, libraries should be...

COMP: Superbuild - NUMPY - In the generated site.cfg, libraries should be listed without the "lib" prefix.

As explained in site.cfg.example, the library name without the prefix "lib" should be used.
Nevertheless, on windows, only "libf2c" leads to a successful configuration and
installation of NUMPY

git-svn-id: http://svn.slicer.org/Slicer4/trunk@13856 3bd1e089-480b-0410-8dfb-8563597acbee
parent 080cb00f
......@@ -10,12 +10,20 @@ if(WIN32)
set(path_sep ";")
endif()
# As explained in site.cfg.example, the library name without the prefix "lib" should be used.
# Nevertheless, on windows, only "libf2c" leads to a successful configuration and
# installation of NUMPY
set(f2c_libname "f2c")
if(WIN32)
set(f2c_libname "libf2c")
endif()
# setup the site.cfg file
file(WRITE "@NUMPY_binary@/site.cfg"
"
[blas]
library_dirs = @CLAPACK_binary@/BLAS/SRC/${CONFIG_TYPE}/${path_sep}@CLAPACK_binary@/F2CLIBS/libf2c/${CONFIG_TYPE}/
libraries = blas,libf2c
libraries = blas,${f2c_libname}
[lapack]
library_dirs = @CLAPACK_binary@/SRC/${CONFIG_TYPE}/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment