Merge pull request #694 from xzcvczx/prefix

Changed install path on osx
This commit is contained in:
Oliver 2017-01-20 11:36:42 +11:00 committed by GitHub
commit afafdcf08e

View file

@ -5,14 +5,11 @@ cmake_minimum_required( VERSION 2.6.1 FATAL_ERROR )
# Locations for install targets.
if( APPLE )
# Like all variables, CMAKE_INSTALL_PREFIX can be over-ridden on the command line.
set( CMAKE_INSTALL_PREFIX /
CACHE PATH "" )
set( CMAKE_INSTALL_PREFIX "/Library/Application Support/kicad/" CACHE PATH "" )
# Everything without leading / is relative to CMAKE_INSTALL_PREFIX.
set( KICAD_DATA "Library/Application Support/kicad/"
CACHE PATH "Location of KiCad data files." )
set( KICAD_MODULES ${KICAD_DATA}/modules )
set( KICAD_LIBRARY ${KICAD_DATA}/library )
set( KICAD_TEMPLATE ${KICAD_DATA}/template )
set( KICAD_MODULES modules )
set( KICAD_LIBRARY library )
set( KICAD_TEMPLATE template )
else()
# Everything without leading / is relative to CMAKE_INSTALL_PREFIX.
set( KICAD_DATA share/kicad