Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
062ec172
Commit
062ec172
authored
Jul 03, 2015
by
PRUVOST Florent
Browse files
add dependencies when test functions in Finds pastix, (pt)scotch
parent
4474dea7
Changes
3
Show whitespace changes
Inline
Side-by-side
cmake_modules/morse/find/FindPASTIX.cmake
View file @
062ec172
...
@@ -615,6 +615,12 @@ if(PASTIX_LIBRARIES)
...
@@ -615,6 +615,12 @@ if(PASTIX_LIBRARIES)
endforeach
()
endforeach
()
list
(
APPEND REQUIRED_LIBS
"
${
METIS_LIBRARIES
}
"
)
list
(
APPEND REQUIRED_LIBS
"
${
METIS_LIBRARIES
}
"
)
endif
()
endif
()
# Fortran
if
(
CMAKE_Fortran_COMPILER MATCHES
".+gfortran.*"
)
list
(
APPEND REQUIRED_LIBS
"-lgfortran"
)
elseif
(
CMAKE_Fortran_COMPILER MATCHES
".+ifort.*"
)
list
(
APPEND REQUIRED_LIBS
"-lifcore"
)
endif
()
# EXTRA LIBS such that pthread, m, rt
# EXTRA LIBS such that pthread, m, rt
list
(
APPEND REQUIRED_LIBS
${
PASTIX_EXTRA_LIBRARIES
}
)
list
(
APPEND REQUIRED_LIBS
${
PASTIX_EXTRA_LIBRARIES
}
)
...
...
cmake_modules/morse/find/FindPTSCOTCH.cmake
View file @
062ec172
...
@@ -264,6 +264,10 @@ if(PTSCOTCH_LIBRARIES)
...
@@ -264,6 +264,10 @@ if(PTSCOTCH_LIBRARIES)
if
(
CMAKE_THREAD_LIBS_INIT
)
if
(
CMAKE_THREAD_LIBS_INIT
)
list
(
APPEND REQUIRED_LIBS
"
${
CMAKE_THREAD_LIBS_INIT
}
"
)
list
(
APPEND REQUIRED_LIBS
"
${
CMAKE_THREAD_LIBS_INIT
}
"
)
endif
()
endif
()
if
(
UNIX OR WIN32
)
list
(
APPEND REQUIRED_LIBS
"-lm"
)
endif
()
list
(
APPEND REQUIRED_LIBS
"-lz -lrt"
)
# set required libraries for link
# set required libraries for link
set
(
CMAKE_REQUIRED_INCLUDES
"
${
REQUIRED_INCDIRS
}
"
)
set
(
CMAKE_REQUIRED_INCLUDES
"
${
REQUIRED_INCDIRS
}
"
)
...
...
cmake_modules/morse/find/FindSCOTCH.cmake
View file @
062ec172
...
@@ -233,6 +233,10 @@ if(SCOTCH_LIBRARIES)
...
@@ -233,6 +233,10 @@ if(SCOTCH_LIBRARIES)
if
(
CMAKE_THREAD_LIBS_INIT
)
if
(
CMAKE_THREAD_LIBS_INIT
)
list
(
APPEND REQUIRED_LIBS
"
${
CMAKE_THREAD_LIBS_INIT
}
"
)
list
(
APPEND REQUIRED_LIBS
"
${
CMAKE_THREAD_LIBS_INIT
}
"
)
endif
()
endif
()
if
(
UNIX OR WIN32
)
list
(
APPEND REQUIRED_LIBS
"-lm"
)
endif
()
list
(
APPEND REQUIRED_LIBS
"-lz -lrt"
)
# set required libraries for link
# set required libraries for link
set
(
CMAKE_REQUIRED_INCLUDES
"
${
REQUIRED_INCDIRS
}
"
)
set
(
CMAKE_REQUIRED_INCLUDES
"
${
REQUIRED_INCDIRS
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment