[CMake] PGO (Profile Guided Optimization)

2018-10-30 Thread Jan Wielemaker
Hi, I was wondering whether there is a module or skeleton floating around to deal with Profile Guided Optimization using a cmake build. If this rings a bell you probably know the sequence (assuming GCC): - compile using -fprofile-generate - run a benchmark suite, this generates .gcda files

[CMake] Detailed graphviz graph?

2018-10-03 Thread Jan Wielemaker
Hi, Debugging dependencies is not always easy. The -graphviz option is a nice try, but only seems to do the built-in target types. Is there some way to get the whole dependency graph, including custom targets and possibly also the individual files? Of course this can get huge. Possibly

[CMake] Call function from name and list, including empty elements?

2018-09-29 Thread Jan Wielemaker
Hi I'm converting a big project (SWI-Prolog) to cmake. Still a newbie wrt. cmake, but quite happy. There is one thing that I can't get done: install the system using symbolic links to the source tree. This is in this case really handy for developers. I've come as far as understanding: - The

Re: [CMake] Call function from name and list, including empty elements?

2018-09-30 Thread Jan Wielemaker
Hi Craig, Thanks for the quick response. On 30/09/18 01:00, Craig Scott wrote: On Sun, Sep 30, 2018 at 2:28 AM Jan Wielemaker mailto:j...@swi-prolog.org>> wrote: Hi I'm converting a big project (SWI-Prolog) to cmake. Still a newbie wrt. cmake, but quite happy. There

Re: [CMake] Detailed graphviz graph?

2018-10-03 Thread Jan Wielemaker
On 10/03/2018 09:53 AM, Eric Noulard wrote: Le mer. 3 oct. 2018 à 09:19, Jan Wielemaker mailto:j...@swi-prolog.org>> a écrit : Hi, Debugging dependencies is not always easy. The -graphviz option is a nice try, but only seems to do the built-in target types. Is there

Re: [CMake] Detailed graphviz graph?

2018-10-06 Thread Jan Wielemaker
On 03/10/18 09:53, Eric Noulard wrote: - I have an ordinary executable target `swipl` - To run, this requires a boot file `swipl.prc` that is created by calling `swipl -b ...` Hum... I don't get it. For running? creating? target "swipl" you need to run it? There is a

[CMake] FindPkgConfig and using -m32 on Linux

2019-01-17 Thread Jan Wielemaker
Hi, I'm trying to build a complicated package for 32-bits on 64-bit Ubuntu. I got very far using set(CMAKE_C_FLAGS -m32) set(CMAKE_LIBRARY_ARCHITECTURE i386-linux-gnu) But right now, find_package(OpenSSL) is failing. I think the problem is with FindOpenSSL.cmake doing this (Ubuntu

Re: [CMake] FindPkgConfig and using -m32 on Linux

2019-01-17 Thread Jan Wielemaker
odd :( Possibly a more direct way to add directories to the start/end of the PKG_CONFIG_PATH is more intuitive? Cheers --- Jan On 17/01/2019 13:57, Jan Wielemaker wrote: > Hi, > > I'm trying to build a complicated package for 32-bits on 64-bit Ubuntu. > I got very far us

Re: [CMake] How to find GTK3 in CMake

2018-11-21 Thread Jan Wielemaker
On 21/11/2018 09:46, David Demelier wrote: > The philosophy behind CMake is to let upstream projects provides their > own CMake configuration packages rather than providing Find modules for > every single library existing in the world. > > CMake should already not provide any of these, but this