Another patch for config relocation

This commit is contained in:
Carl Poirier 2014-09-09 16:43:39 -04:00
parent 5ade7236e7
commit 2df47221d1
1 changed files with 9 additions and 4 deletions

View File

@ -41,11 +41,16 @@ mark_as_advanced( KICAD_DATA KICAD_MODULES KICAD_LIBRARY )
if( UNIX )
set( KICAD_USER_CONFIG_DIR "$ENV{HOME}/.config/kicad"
CACHE PATH "Location of user specifig KiCad config files" )
if( APPLE )
set( KICAD_USER_CONFIG_DIR $ENV{HOME}/Library/Preferences/kicad
CACHE PATH "Location of user specifig KiCad config files" )
else()
set( KICAD_USER_CONFIG_DIR $ENV{HOME}/.config/kicad
CACHE PATH "Location of user specifig KiCad config files" )
endif()
elseif( MINGW )
set( KICAD_USER_CONFIG_DIR "$ENV{%APPDATA%}/kicad"
CACHE PATH "Location of user specifig KiCad config files" )
set( KICAD_USER_CONFIG_DIR $ENV{%APPDATA%}/kicad
CACHE PATH "Location of user specifig KiCad config files" )
endif()
mark_as_advanced( KICAD_USER_CONFIG_DIR )