mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
Differen default install dir on MacOS
This commit is contained in:
parent
a08fd7a509
commit
b9018982e1
@ -69,12 +69,6 @@ if (ADDITIONAL_PATHS)
|
|||||||
set(CMAKE_PREFIX_PATH ${ADDITIONAL_PATHS})
|
set(CMAKE_PREFIX_PATH ${ADDITIONAL_PATHS})
|
||||||
endif (ADDITIONAL_PATHS)
|
endif (ADDITIONAL_PATHS)
|
||||||
|
|
||||||
#######################################################################
|
|
||||||
# install dir
|
|
||||||
if(NOT INSTALL_DIR)
|
|
||||||
set(INSTALL_DIR "/opt/netgen" CACHE PATH "Prefix prepended to install directories")
|
|
||||||
endif(NOT INSTALL_DIR)
|
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(CMAKE_INSTALL_PREFIX "${INSTALL_DIR}/Netgen.app/Contents/Resources" CACHE INTERNAL "Prefix prepended to install directories" FORCE)
|
set(CMAKE_INSTALL_PREFIX "${INSTALL_DIR}/Netgen.app/Contents/Resources" CACHE INTERNAL "Prefix prepended to install directories" FORCE)
|
||||||
else(APPLE)
|
else(APPLE)
|
||||||
|
@ -45,10 +45,11 @@ endif(WIN32)
|
|||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# find netgen
|
# find netgen
|
||||||
set(INSTALL_DIR /opt/netgen CACHE PATH "Install path")
|
|
||||||
if(APPLE)
|
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(CMAKE_INSTALL_PREFIX "${INSTALL_DIR}/Netgen.app/Contents/Resources" CACHE INTERNAL "Prefix prepended to install directories" FORCE)
|
||||||
else(APPLE)
|
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)
|
set(CMAKE_INSTALL_PREFIX "${INSTALL_DIR}" CACHE INTERNAL "Prefix prepended to install directories" FORCE)
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
|
Loading…
Reference in New Issue
Block a user