Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
schwede
openstructure
Commits
6e04377b
Commit
6e04377b
authored
9 years ago
by
Bienchen
Browse files
Options
Downloads
Patches
Plain Diff
Small fix to FindOpenMM, prevent variable chaining
parent
7b778538
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
cmake_support/FindOpenMM.cmake
+11
-2
11 additions, 2 deletions
cmake_support/FindOpenMM.cmake
with
11 additions
and
2 deletions
cmake_support/FindOpenMM.cmake
+
11
−
2
View file @
6e04377b
...
...
@@ -8,8 +8,17 @@
# OpenMM_LIBRARIES - List of libraries when using OpenMM.
# OpenMM_FOUND - True if OpenMM found.
find_path
(
OPEN_MM_INCLUDE_DIR OpenMM.h
)
find_library
(
OPEN_MM_LIBRARY NAMES OpenMM
)
if
(
OPEN_MM_INCLUDE_DIR
)
set
(
OPEN_MM_FOUND TRUE
)
else
(
OPEN_MM_INCLUDE_DIR
)
find_path
(
OPEN_MM_INCLUDE_DIR OpenMM.h
)
endif
(
OPEN_MM_INCLUDE_DIR
)
if
(
OPEN_MM_LIBRARY
)
set
(
OPEN_MM_FOUND TRUE
)
else
(
OPEN_MM_LIBRARY
)
find_library
(
OPEN_MM_LIBRARY NAMES OpenMM
)
endif
(
OPEN_MM_LIBRARY
)
set
(
OPEN_MM_LIBRARIES
${
OPEN_MM_LIBRARY
}
)
set
(
OPEN_MM_INCLUDE_DIRS
${
OPEN_MM_INCLUDE_DIR
}
)
...
...
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