[CMake] Cannot set ASM_MASM flags?

2018-11-21 Thread Tiago Macarios
I am trying to set a flag for the Microsoft assembler, but no luck. Dummy repro below. I tried setting target_compile_options, but that seems not to work. Then I tried setting CMAKE_ASM_MASM_FLAGS, but that does not seem to work either. It seems like I am hitting this issue: https://gitlab.kitware

Re: [CMake] How is ARGN passed to a macro

2018-11-21 Thread Torsten Robitzki
Hi Andreas, > Am 21.11.2018 um 20:18 schrieb Andreas Naumann : > > I think the behavior is explained in [1] and [2]. In particular the second > section of [2] states that the parameter " [...] such as ARGN are not > variables in the usual CMake sense. They are string replacements [...]". And

Re: [CMake] How is ARGN passed to a macro

2018-11-21 Thread Andreas Naumann
Hey Torsten, Am 21.11.18 um 13:15 schrieb Torsten Robitzki: Hi, I’ve stumbled over following behavior and now I’m searching for the rules, that explains that behavior: test.cmake: macro(check_argn) message("in macro check_argn ARGN: ${ARGN}") if(ARGN) foreach(item IN LIST

[CMake] How is ARGN passed to a macro

2018-11-21 Thread Torsten Robitzki
Hi, I’ve stumbled over following behavior and now I’m searching for the rules, that explains that behavior: test.cmake: macro(check_argn) message("in macro check_argn ARGN: ${ARGN}") if(ARGN) foreach(item IN LISTS ARGN) message("ARG: ${item}") endforeach(item)

Re: [CMake] How to find GTK3 in CMake

2018-11-21 Thread Harry Mallon
Hi again, Thanks David and Eric. I have actually used cmake’s pkgconfig integration to support this library. As you say (about it not being very portable) I only needed it on Linux so pkgconfig is a reasonable thing to use. Thanks, Harry Harry Mallon Senior Software Engineer [http://codex.o

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 gen

Re: [CMake] How to find GTK3 in CMake

2018-11-21 Thread David Demelier
Le 21/11/2018 à 10:19, Jan Wielemaker a écrit : Good. I was already considering providing a cmake file after migrating SWI-Prolog to cmake. Are there good guidelines for this? Pkg-config asks for providing a .pc file and installing in a well-known place. Is there a similar place for project cmake

Re: [CMake] How to find GTK3 in CMake

2018-11-21 Thread Eric Noulard
Le mer. 21 nov. 2018 à 09:46, David Demelier a écrit : > Le 20/11/2018 à 17:03, Harry Mallon a écrit : > > Hi, > > > > FindGTK and FindGTK2 exist in the CMake tree. How come there isn't one > for GTK3? Should the GTK2 one work, or is there another way? > > GNOME people don't like CMake (they use

Re: [CMake] How to find GTK3 in CMake

2018-11-21 Thread David Demelier
Le 20/11/2018 à 17:03, Harry Mallon a écrit : Hi, FindGTK and FindGTK2 exist in the CMake tree. How come there isn't one for GTK3? Should the GTK2 one work, or is there another way? GNOME people don't like CMake (they use meson). The philosophy behind CMake is to let upstream projects provid