Another patch for config relocation

This commit is contained in:
Carl Poirier 2014-09-09 16:43:39 -04:00
parent 5ade7236e7
commit 2df47221d1

View file

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