Applied Wayne's patch for relocating the config files

This commit is contained in:
Carl Poirier 2014-09-05 19:00:48 -04:00
parent bb7d91f13b
commit 22739e050a
1 changed files with 5 additions and 2 deletions

View File

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