Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
4da931f8
Commit
4da931f8
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
don't use MKL_PREFIX_PATH: simply use CMAKE_PREFIX_PATH like for everything else
parent
bf65af5b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+35
-28
35 additions, 28 deletions
CMakeLists.txt
with
35 additions
and
28 deletions
CMakeLists.txt
+
35
−
28
View file @
4da931f8
...
@@ -121,35 +121,42 @@ endmacro(append_gmsh_src)
...
@@ -121,35 +121,42 @@ endmacro(append_gmsh_src)
if
(
ENABLE_BLAS_LAPACK
)
if
(
ENABLE_BLAS_LAPACK
)
if
(
MSVC
)
if
(
MSVC
)
# on Windows with Visual C++ try really hard to find blas/lapack
# on Windows with Visual C++ try really hard to find blas/lapack
# *without* requiring a Fortran compiler: 1) first try to get the
# in CMAKE_PREFIX_PATH *without* requiring a Fortran compiler: 1)
# Intel MKL in MKL_PREFIX_PATH; if failed 2) try to to get the
# try to find the Intel MKL; if not found 2) try to get the
# reference blas/lapack libs in CMAKE_PREFIX_PATH (useful for
# reference blas/lapack libs (useful for users with no Fortan
# users with no Fortan compiler and no MKL license, who can just
# compiler and no MKL license, who can just download our
# download our precompiled "gmsh-dep" package)
# precompiled "gmsh-dep" package)
if
(
MKL_PREFIX_PATH
)
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
MKL_PATH em64t/lib
)
set
(
MKL_PATH
${
MKL_PREFIX_PATH
}
/em64t/lib
)
else
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
else
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
MKL_PATH ia32/lib
)
set
(
MKL_PATH
${
MKL_PREFIX_PATH
}
/ia32/lib
)
endif
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
endif
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
find_library
(
LIBGUIDE libguide PATHS
${
CMAKE_PREFIX_PATH
}
find_library
(
LIBGUIDE libguide
${
MKL_PATH
}
)
PATH_SUFFIXES
${
MKL_PATH
}
)
find_library
(
MKL_C mkl_c PATHS
${
MKL_PATH
}
)
find_library
(
MKL_C mkl_c PATHS
${
CMAKE_PREFIX_PATH
}
find_library
(
MKL_INTEL_C mkl_intel_c
${
MKL_PATH
}
)
PATH_SUFFIXES
${
MKL_PATH
}
)
find_library
(
MKL_INTEL_THREAD mkl_intel_thread
${
MKL_PATH
}
)
find_library
(
MKL_INTEL_C mkl_intel_c PATHS
${
CMAKE_PREFIX_PATH
}
find_library
(
MKL_CORE mkl_core
${
MKL_PATH
}
)
PATH_SUFFIXES
${
MKL_PATH
}
)
if
(
LIBGUIDE AND MKL_C AND MKL_INTEL_C AND MKL_INTEL_THREAD AND MKL_CORE
)
find_library
(
MKL_INTEL_THREAD mkl_intel_thread PATHS
${
CMAKE_PREFIX_PATH
}
set
(
LAPACK_LIBRARIES
${
LIBGUIDE
}
${
MKL_C
}
${
MKL_INTEL_C
}
PATH_SUFFIXES
${
MKL_PATH
}
)
${
MKL_INTEL_THREAD
}
${
MKL_CORE
}
)
find_library
(
MKL_CORE mkl_core PATHS
${
CMAKE_PREFIX_PATH
}
set
(
HAVE_BLAS TRUE
)
PATH_SUFFIXES
${
MKL_PATH
}
)
set
(
HAVE_LAPACK TRUE
)
if
(
LIBGUIDE AND MKL_C AND MKL_INTEL_C AND MKL_INTEL_THREAD AND MKL_CORE
)
list
(
APPEND CONFIG_OPTIONS
"IntelBlas"
"IntelLapack"
)
set
(
LAPACK_LIBRARIES
${
LIBGUIDE
}
${
MKL_C
}
${
MKL_INTEL_C
}
endif
(
LIBGUIDE AND MKL_C AND MKL_INTEL_C AND MKL_INTEL_THREAD AND MKL_CORE
)
${
MKL_INTEL_THREAD
}
${
MKL_CORE
}
)
endif
(
MKL_PREFIX_PATH
)
set
(
HAVE_BLAS TRUE
)
set
(
HAVE_LAPACK TRUE
)
list
(
APPEND CONFIG_OPTIONS
"IntelBlas"
"IntelLapack"
)
endif
(
LIBGUIDE AND MKL_C AND MKL_INTEL_C AND MKL_INTEL_THREAD AND MKL_CORE
)
if
(
NOT HAVE_BLAS OR NOT HAVE_LAPACK
)
if
(
NOT HAVE_BLAS OR NOT HAVE_LAPACK
)
find_library
(
REF_LAPACK lapack
${
CMAKE_PREFIX_PATH
}
/lib NO_DEFAULT_PATH
)
find_library
(
REF_LAPACK lapack PATHS
${
CMAKE_PREFIX_PATH
}
find_library
(
REF_BLAS blas
${
CMAKE_PREFIX_PATH
}
/lib NO_DEFAULT_PATH
)
PATH_SUFFIXES lib NO_DEFAULT_PATH
)
find_library
(
REF_G2C g2c
${
CMAKE_PREFIX_PATH
}
/lib NO_DEFAULT_PATH
)
find_library
(
REF_BLAS blas PATHS
${
CMAKE_PREFIX_PATH
}
find_library
(
REF_GCC gcc
${
CMAKE_PREFIX_PATH
}
/lib NO_DEFAULT_PATH
)
PATH_SUFFIXES lib NO_DEFAULT_PATH
)
find_library
(
REF_G2C g2c PATHS
${
CMAKE_PREFIX_PATH
}
PATH_SUFFIXES lib NO_DEFAULT_PATH
)
find_library
(
REF_GCC gcc PATHS
${
CMAKE_PREFIX_PATH
}
PATH_SUFFIXES lib NO_DEFAULT_PATH
)
if
(
REF_LAPACK AND REF_BLAS AND REF_G2C AND REF_GCC
)
if
(
REF_LAPACK AND REF_BLAS AND REF_G2C AND REF_GCC
)
set
(
LAPACK_LIBRARIES
${
REF_LAPACK
}
${
REF_BLAS
}
${
REF_G2C
}
${
REF_GCC
}
)
set
(
LAPACK_LIBRARIES
${
REF_LAPACK
}
${
REF_BLAS
}
${
REF_G2C
}
${
REF_GCC
}
)
set
(
HAVE_BLAS TRUE
)
set
(
HAVE_BLAS TRUE
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment