update CMakeLists.txt
This commit is contained in:
parent
82ceea032a
commit
aba2d31deb
|
@ -9,6 +9,15 @@ endif(WIN32)
|
|||
# Locations for install targets.
|
||||
if(UNIX)
|
||||
if(APPLE)
|
||||
# Like all variables, CMAKE_INSTALL_PREFIX can be over-ridden on the command line.
|
||||
set(CMAKE_INSTALL_PREFIX /
|
||||
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)
|
||||
else(APPLE)
|
||||
# Like all variables, CMAKE_INSTALL_PREFIX can be over-ridden on the command line.
|
||||
set(CMAKE_INSTALL_PREFIX /usr/local
|
||||
|
|
Loading…
Reference in New Issue