Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScalFMM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
ScalFMM
Commits
d6b60c20
Commit
d6b60c20
authored
10 years ago
by
Florent Pruvost
Browse files
Options
Downloads
Patches
Plain Diff
add include/fftw/ dir to look for headers (not only include/ dir)
parent
68cb9665
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeModules/morse/find/FindFFTW.cmake
+13
-15
13 additions, 15 deletions
CMakeModules/morse/find/FindFFTW.cmake
with
13 additions
and
15 deletions
CMakeModules/morse/find/FindFFTW.cmake
+
13
−
15
View file @
d6b60c20
...
@@ -40,11 +40,8 @@
...
@@ -40,11 +40,8 @@
# FFTW_DIR - Where to find the base directory of fftw
# FFTW_DIR - Where to find the base directory of fftw
# FFTW_INCDIR - Where to find the header files
# FFTW_INCDIR - Where to find the header files
# FFTW_LIBDIR - Where to find the library files
# FFTW_LIBDIR - Where to find the library files
# The module can also look after the following environment variables if paths
# The module can also look for the following environment variables if paths
# are not given as cmake variable
# are not given as cmake variable: FFTW_DIR, FFTW_INCDIR, FFTW_LIBDIR
# FFTW_DIR - Where to find the base directory of fftw
# FFTW_INCDIR - Where to find the header files
# FFTW_LIBDIR - Where to find the library files
# For MKL case and if no paths are given as hints, we will try to use the MKLROOT
# For MKL case and if no paths are given as hints, we will try to use the MKLROOT
# environment variable
# environment variable
...
@@ -69,7 +66,7 @@
...
@@ -69,7 +66,7 @@
if
(
NOT FFTW_FOUND
)
if
(
NOT FFTW_FOUND
)
set
(
FFTW_DIR
""
CACHE PATH
"Installation directory of FFTW library given by user"
)
set
(
FFTW_DIR
""
CACHE PATH
"Installation directory of FFTW library given by user"
)
if
(
NOT FFTW_FIND_QUIETLY
)
if
(
NOT FFTW_FIND_QUIETLY
)
message
(
STATUS
"A cache variable, namely FFTW_DIR
_USER
, has been set to specify the install directory of FFTW"
)
message
(
STATUS
"A cache variable, namely FFTW_DIR, has been set to specify the install directory of FFTW"
)
endif
()
endif
()
endif
()
endif
()
...
@@ -168,14 +165,15 @@ unset(_inc_env)
...
@@ -168,14 +165,15 @@ unset(_inc_env)
set
(
ENV_MKLROOT
"$ENV{MKLROOT}"
)
set
(
ENV_MKLROOT
"$ENV{MKLROOT}"
)
set
(
ENV_FFTW_DIR
"$ENV{FFTW_DIR}"
)
set
(
ENV_FFTW_DIR
"$ENV{FFTW_DIR}"
)
set
(
ENV_FFTW_INCDIR
"$ENV{FFTW_INCDIR}"
)
set
(
ENV_FFTW_INCDIR
"$ENV{FFTW_INCDIR}"
)
if
(
ENV_FFTW_DIR
)
if
(
ENV_FFTW_INCDIR
)
list
(
APPEND _inc_env
"
${
ENV_FFTW_INCDIR
}
"
)
elseif
(
ENV_FFTW_DIR
)
list
(
APPEND _inc_env
"
${
ENV_FFTW_DIR
}
"
)
list
(
APPEND _inc_env
"
${
ENV_FFTW_DIR
}
"
)
list
(
APPEND _inc_env
"
${
ENV_FFTW_DIR
}
/include"
)
list
(
APPEND _inc_env
"
${
ENV_FFTW_DIR
}
/include"
)
elseif
(
ENV_FFTW_INCDIR
)
list
(
APPEND _inc_env
"
${
ENV_FFTW_DIR
}
/include/fftw"
)
list
(
APPEND _inc_env
"
${
ENV_FFTW_INCDIR
}
"
)
else
()
else
()
if
(
ENV_MKLROOT
)
if
(
ENV_MKLROOT
)
list
(
APPEND _inc_env
"
${
ENV_MKLROOT
}
"
)
list
(
APPEND _inc_env
"
${
ENV_MKLROOT
}
/include/fftw
"
)
endif
()
endif
()
# system variables
# system variables
if
(
WIN32
)
if
(
WIN32
)
...
@@ -212,8 +210,8 @@ else()
...
@@ -212,8 +210,8 @@ else()
set
(
FFTW_fftw3.h_DIRS
"FFTW_fftw3.h_DIRS-NOTFOUND"
)
set
(
FFTW_fftw3.h_DIRS
"FFTW_fftw3.h_DIRS-NOTFOUND"
)
find_path
(
FFTW_fftw3.h_DIRS
find_path
(
FFTW_fftw3.h_DIRS
NAMES fftw3.h
NAMES fftw3.h
HINTS
${
FFTW_DIR
_USER
}
HINTS
${
FFTW_DIR
}
PATH_SUFFIXES include
)
PATH_SUFFIXES include
include/fftw
)
else
()
else
()
set
(
FFTW_fftw3.h_DIRS
"FFTW_fftw3.h_DIRS-NOTFOUND"
)
set
(
FFTW_fftw3.h_DIRS
"FFTW_fftw3.h_DIRS-NOTFOUND"
)
find_path
(
FFTW_fftw3.h_DIRS
find_path
(
FFTW_fftw3.h_DIRS
...
@@ -242,7 +240,9 @@ endif ()
...
@@ -242,7 +240,9 @@ endif ()
# --------------------------------------
# --------------------------------------
unset
(
_lib_env
)
unset
(
_lib_env
)
set
(
ENV_FFTW_LIBDIR
"$ENV{FFTW_LIBDIR}"
)
set
(
ENV_FFTW_LIBDIR
"$ENV{FFTW_LIBDIR}"
)
if
(
ENV_FFTW_DIR
)
if
(
ENV_FFTW_LIBDIR
)
list
(
APPEND _lib_env
"
${
ENV_FFTW_LIBDIR
}
"
)
elseif
(
ENV_FFTW_DIR
)
list
(
APPEND _lib_env
"
${
ENV_FFTW_DIR
}
"
)
list
(
APPEND _lib_env
"
${
ENV_FFTW_DIR
}
"
)
list
(
APPEND _lib_env
"
${
ENV_FFTW_DIR
}
/lib"
)
list
(
APPEND _lib_env
"
${
ENV_FFTW_DIR
}
/lib"
)
if
(
"
${
CMAKE_SIZEOF_VOID_P
}
"
EQUAL
"8"
)
if
(
"
${
CMAKE_SIZEOF_VOID_P
}
"
EQUAL
"8"
)
...
@@ -252,8 +252,6 @@ if(ENV_FFTW_DIR)
...
@@ -252,8 +252,6 @@ if(ENV_FFTW_DIR)
list
(
APPEND _lib_env
"
${
ENV_FFTW_DIR
}
/lib32"
)
list
(
APPEND _lib_env
"
${
ENV_FFTW_DIR
}
/lib32"
)
list
(
APPEND _lib_env
"
${
ENV_FFTW_DIR
}
/lib/ia32"
)
list
(
APPEND _lib_env
"
${
ENV_FFTW_DIR
}
/lib/ia32"
)
endif
()
endif
()
elseif
(
ENV_FFTW_LIBDIR
)
list
(
APPEND _lib_env
"
${
ENV_FFTW_LIBDIR
}
"
)
else
()
else
()
if
(
ENV_MKLROOT
)
if
(
ENV_MKLROOT
)
if
(
"
${
CMAKE_SIZEOF_VOID_P
}
"
EQUAL
"8"
)
if
(
"
${
CMAKE_SIZEOF_VOID_P
}
"
EQUAL
"8"
)
...
...
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