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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
0f2e727f
Commit
0f2e727f
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
more simplifications
parent
4da931f8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+13
-22
13 additions, 22 deletions
CMakeLists.txt
with
13 additions
and
22 deletions
CMakeLists.txt
+
13
−
22
View file @
0f2e727f
...
...
@@ -121,26 +121,21 @@ endmacro(append_gmsh_src)
if
(
ENABLE_BLAS_LAPACK
)
if
(
MSVC
)
# on Windows with Visual C++ try really hard to find blas/lapack
#
in CMAKE_PREFIX_PATH
*without* requiring a Fortran compiler: 1)
#
try to f
in
d
the
Intel MKL
; if not found 2) try to
get the
# reference blas/lapack libs (useful for users with no
Fortan
# compiler and no MKL license, who can just download our
# *without* requiring a Fortran compiler: 1)
try to find the Intel
#
MKL libs us
in
g
the
standard search path
; if not found 2) try to
#
get the
reference blas/lapack libs (useful for users with no
#
Fortran
compiler and no MKL license, who can just download our
# precompiled "gmsh-dep" package)
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
MKL_PATH em64t/lib
)
else
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
MKL_PATH ia32/lib
)
endif
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
find_library
(
LIBGUIDE libguide PATHS
${
CMAKE_PREFIX_PATH
}
PATH_SUFFIXES
${
MKL_PATH
}
)
find_library
(
MKL_C mkl_c PATHS
${
CMAKE_PREFIX_PATH
}
PATH_SUFFIXES
${
MKL_PATH
}
)
find_library
(
MKL_INTEL_C mkl_intel_c PATHS
${
CMAKE_PREFIX_PATH
}
PATH_SUFFIXES
${
MKL_PATH
}
)
find_library
(
MKL_INTEL_THREAD mkl_intel_thread PATHS
${
CMAKE_PREFIX_PATH
}
PATH_SUFFIXES
${
MKL_PATH
}
)
find_library
(
MKL_CORE mkl_core PATHS
${
CMAKE_PREFIX_PATH
}
PATH_SUFFIXES
${
MKL_PATH
}
)
find_library
(
LIBGUIDE libguide PATH_SUFFIXES
${
MKL_PATH
}
)
find_library
(
MKL_C mkl_c PATH_SUFFIXES
${
MKL_PATH
}
)
find_library
(
MKL_INTEL_C mkl_intel_c PATH_SUFFIXES
${
MKL_PATH
}
)
find_library
(
MKL_INTEL_THREAD mkl_intel_thread PATH_SUFFIXES
${
MKL_PATH
}
)
find_library
(
MKL_CORE mkl_core PATH_SUFFIXES
${
MKL_PATH
}
)
if
(
LIBGUIDE AND MKL_C AND MKL_INTEL_C AND MKL_INTEL_THREAD AND MKL_CORE
)
set
(
LAPACK_LIBRARIES
${
LIBGUIDE
}
${
MKL_C
}
${
MKL_INTEL_C
}
${
MKL_INTEL_THREAD
}
${
MKL_CORE
}
)
...
...
@@ -149,14 +144,10 @@ if(ENABLE_BLAS_LAPACK)
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
)
find_library
(
REF_LAPACK lapack PATHS
${
CMAKE_PREFIX_PATH
}
PATH_SUFFIXES lib NO_DEFAULT_PATH
)
find_library
(
REF_BLAS blas PATHS
${
CMAKE_PREFIX_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
)
find_library
(
REF_LAPACK lapack
)
find_library
(
REF_BLAS blas
)
find_library
(
REF_G2C g2c
)
find_library
(
REF_GCC 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
(
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