Skip to content
Snippets Groups Projects
Commit 6e04377b authored by Bienchen's avatar Bienchen
Browse files

Small fix to FindOpenMM, prevent variable chaining

parent 7b778538
No related branches found
No related tags found
No related merge requests found
......@@ -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})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment