Removed KICAD_DATA dir which is redundant on OSX and changed the prefix to something more sane

This commit is contained in:
Simon Wells 2016-09-12 21:52:47 +12:00
parent 7ad7ce3e8d
commit 8b16a124d5
1 changed files with 4 additions and 7 deletions

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