On 07/02/2018 06:04 AM, Colin Law wrote:
> Well, this line in build/data/pixmaps/cmake_install.cmake
>
> file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/gnucash/icons" TYPE
> DIRECTORY FILES "/home/me/apps/gnucash-3.2/data/pixmaps/hicolor" REGEX
> ".*/apps.*" EXCLUDE)
>
> Is supposed to copy files from gnucash-3.2/data/pixmaps/hicolour/* to
> /usr/local/share/gnucash/icons excluding the pattern .*/apps.* so it should
> copy, for example, hicolor/16x16/actions/gnc-account.png but should exclude
> hicolor/16x16/apps/* but it doesn't work on my system, it excludes
> everything.  If I remove the REGEX  ".." EXCLUDE then it copies them all,
> including those in the apps folder.  I can't see why it doesn't work though.
>
> @Roger could you remove or rename /usr/local/share/gnucash/icons and run
> sudo make install and see if it puts back all the icons such as
> hicolor/actions/gnc-account.png.
>
> If it doesn't then there is a problem with the above cmake instruction, if
> it does then for some reason that does not work on my cmake.
>
> For reference my cmake is 3.10.2-1ubuntu2
>
> Colinif("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT 
> CMAKE_INSTALL_COMPONENT)
>   file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/gnucash" TYPE 
> DIRECTORY FILES "/home/steve/Projects/GnuCash/gnucash-3.2/data/pixmaps" REGEX 
> "/Makefile[^/]*$" EXCLUDE REGEX "/CMake[^/]*$" EXCLUDE REGEX "/CTest[^/]*$" 
> EXCLUDE REGEX "/cmake[^/]*$" EXCLUDE REGEX "/hicolor$" EXCLUDE)
> endif()
>
> if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT 
> CMAKE_INSTALL_COMPONENT)
>   file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/gnucash/icons" TYPE 
> DIRECTORY FILES 
> "/home/steve/Projects/GnuCash/gnucash-3.2/data/pixmaps/hicolor" REGEX 
> ".*/apps.*" EXCLUDE)
> endif()
>
> if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT 
> CMAKE_INSTALL_COMPONENT)
>   file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons" TYPE 
> DIRECTORY FILES 
> "/home/steve/Projects/GnuCash/gnucash-3.2/data/pixmaps/hicolor" REGEX 
> ".*/actions.*" EXCLUDE)
> endif()
>
>
<<snip>>

Mine is

cmake -version
cmake version 3.10.2


I found three relevant areas in my copy of that file:

if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT
CMAKE_INSTALL_COMPONENT)
  file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/gnucash" TYPE
DIRECTORY FILES "/home/steve/Projects/GnuCash/gnucash-3.2/data/pixmaps"
REGEX "/Makefile[^/]*$" EXCLUDE REGEX "/CMake[^/]*$" EXCLUDE REGEX
"/CTest[^/]*$" EXCLUDE REGEX "/cmake[^/]*$" EXCLUDE REGEX "/hicolor$"
EXCLUDE)
endif()

if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT
CMAKE_INSTALL_COMPONENT)
  file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/gnucash/icons"
TYPE DIRECTORY FILES
"/home/steve/Projects/GnuCash/gnucash-3.2/data/pixmaps/hicolor" REGEX
".*/apps.*" EXCLUDE)
endif()

if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT
CMAKE_INSTALL_COMPONENT)
  file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons" TYPE
DIRECTORY FILES
"/home/steve/Projects/GnuCash/gnucash-3.2/data/pixmaps/hicolor" REGEX
".*/actions.*" EXCLUDE)
endif()


Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
-------------------------------------------
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8

_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to