Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
fleur
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
51
Issues
51
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
fleur
fleur
Commits
2868883a
Commit
2868883a
authored
Apr 06, 2017
by
Daniel Wortmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ELPA_LIB&ELPA_MODULES variables
parent
a818b405
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
cmake/tests/test_ELPA.cmake
cmake/tests/test_ELPA.cmake
+18
-0
No files found.
cmake/tests/test_ELPA.cmake
View file @
2868883a
...
...
@@ -2,6 +2,24 @@
try_compile
(
FLEUR_USE_ELPA
${
CMAKE_BINARY_DIR
}
${
CMAKE_SOURCE_DIR
}
/cmake/tests/test_ELPA.f90
LINK_LIBRARIES
${
FLEUR_LIBRARIES
}
)
if
(
NOT FLEUR_USE_ELPA
)
if
(
DEFINED ENV{ELPA_MODULES}
)
set
(
STORE_FLAGS
${
CMAKE_Fortran_FLAGS
}
)
set
(
CMAKE_Fortran_FLAGS
"
${
CMAKE_Fortran_FLAGS
}
-I$ENV{ELPA_MODULES}"
)
endif
()
if
(
DEFINED ENV{ELPA_LIB}
)
set
(
TEST_LIBRARIES
"-L
${
ELPA_LIB
}
;-lelpa_openmp;
${
FLEUR_LIBRARIES
}
"
)
endif
()
try_compile
(
FLEUR_USE_ELPA
${
CMAKE_BINARY_DIR
}
${
CMAKE_SOURCE_DIR
}
/cmake/tests/test_ELPA.f90
LINK_LIBRARIES
${
TEST_LIBRARIES
}
)
if
(
FLEUR_USE_ELPA
)
set
(
FLEUR_LIBRARIES
"
${
TEST_LIBRARIES
}
"
)
else
()
set
(
CMAKE_Fortran_FLAGS
${
STORE_FLAGS
}
)
endif
()
endif
()
message
(
"ELPA Library found:
${
FLEUR_USE_ELPA
}
"
)
#Now check for version of elpa
...
...
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