From aa34a214bf43f777cf26e563af4c7156dc0a5530 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 22 Feb 2017 10:32:49 +0100 Subject: [PATCH] Allow to install Netgen to /Applications/custom_name on MacOS --- cmake_modules/SuperBuild.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake_modules/SuperBuild.cmake b/cmake_modules/SuperBuild.cmake index 4de5ea0b..1ad75ca2 100644 --- a/cmake_modules/SuperBuild.cmake +++ b/cmake_modules/SuperBuild.cmake @@ -45,8 +45,8 @@ endif(WIN32) ####################################################################### # find netgen if(APPLE) - set(INSTALL_DIR /Applications CACHE PATH "Install path") - set(CMAKE_INSTALL_PREFIX "${INSTALL_DIR}/Netgen.app/Contents/Resources" CACHE INTERNAL "Prefix prepended to install directories" FORCE) + set(INSTALL_DIR /Applications/Netgen.app CACHE PATH "Install path") + set(CMAKE_INSTALL_PREFIX "${INSTALL_DIR}/Contents/Resources" CACHE INTERNAL "Prefix prepended to install directories" FORCE) else(APPLE) set(INSTALL_DIR /opt/netgen CACHE PATH "Install path") set(CMAKE_INSTALL_PREFIX "${INSTALL_DIR}" CACHE INTERNAL "Prefix prepended to install directories" FORCE)