← Back to team overview

kicad-lib-committers team mailing list archive

Library support

 

Hi, 
I’ve seen that the library was missing the APPLE support in CMake, i’ve added it and you can see the patch at the end of this mail.
Could someone add this on the library CMAKE ?

To choice if the library will be personal or global CMAKE_INSTALL_PREFIX should point to $HOME or /

Thank you for your time,
Marco

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt	(revision 321)
+++ CMakeLists.txt	(working copy)
@@ -9,6 +9,13 @@
 # Locations for install targets.
 if(UNIX)
     if(APPLE)
+        set(CMAKE_INSTALL_PREFIX / CACHE PATH "")
+
+        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



Follow ups