Created
May 28, 2018 20:33
-
-
Save fusion809/df3e90c9fb627c4a2b3c7e62306b72f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libavogadro/src/extensions/yaehmop/CMakeLists.txt b/libavogadro/src/extensions/yaehmop/CMakeLists.txt | |
index f1b4b5d1..a820d5a7 100644 | |
--- a/libavogadro/src/extensions/yaehmop/CMakeLists.txt | |
+++ b/libavogadro/src/extensions/yaehmop/CMakeLists.txt | |
@@ -35,32 +35,6 @@ option(USE_SYSTEM_YAEHMOP "Use system YAeHMOP" OFF) | |
if(NOT ${USE_SYSTEM_YAEHMOP} AND | |
NOT EXISTS ${CMAKE_BINARY_DIR}/bin/${YAEHMOP_NAME}) | |
set(YAEHMOP_V "3.0.2") | |
- # Linux | |
- if(UNIX AND NOT APPLE) | |
- set(YAEHMOP_DOWNLOAD_LOCATION "https://github.com/psavery/yaehmop/releases/download/${YAEHMOP_V}/linux64-yaehmop.tgz") | |
- set(MD5 "e878e96ea891d843ddb539b36da67117") | |
- | |
- # Apple | |
- elseif(APPLE) | |
- set(YAEHMOP_DOWNLOAD_LOCATION "https://github.com/psavery/yaehmop/releases/download/${YAEHMOP_V}/mac64-yaehmop.tgz") | |
- set(MD5 "465b8217f5aed9244513dbc00f083133") | |
- | |
- # Windows | |
- elseif(WIN32 AND NOT CYGWIN) | |
- set(YAEHMOP_DOWNLOAD_LOCATION "https://github.com/psavery/yaehmop/releases/download/${YAEHMOP_V}/win32-yaehmop.exe.tgz") | |
- set(MD5 "89be7c295200f39f5c3b2c99d14ecb1e") | |
- | |
- else() | |
- message(FATAL_ERROR "Yaehmop is not supported with the current OS type!") | |
- endif() | |
- | |
- message("-- Downloading Yaehmop executable from ${YAEHMOP_DOWNLOAD_LOCATION}") | |
- | |
- file(DOWNLOAD | |
- ${YAEHMOP_DOWNLOAD_LOCATION} | |
- "${CMAKE_BINARY_DIR}/bin/${YAEHMOP_NAME}.tgz" | |
- SHOW_PROGRESS | |
- EXPECTED_MD5 ${MD5}) | |
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzvf ${YAEHMOP_NAME}.tgz | |
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/bin") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment