Re: [CMake] Finding out how "cmake" was run

2018-10-31 Thread Alan W. Irwin
On 2018-10-31 14:17- Ian Cullen wrote: Looks like someone had a similar idea to you a few days ago - https://gitlab.kitware.com/cmake/cmake/issues/18505 Also discussed previously: https://gitlab.kitware.com/cmake/cmake/issues/14756 https://gitlab.kitware.com/cmake/cmake/issues/16833 In a

Re: [CMake] Support of ${MPIEXEC_EXECUTABLE} in try_run

2018-10-31 Thread Robert Maynard
No, if you need the executable to be launched by mpiexec you will need to use some combination od custom_commands instead of try_run On Tue, Oct 30, 2018 at 12:37 PM Hector E Barrios Molano wrote: > > Hi CMake Users, > > Is there a way to use ${MPIEXEC_EXECUTABLE} during execution of a program >

[CMake] How to "unescape" CXXFLAGS option using CMake 3.12.3

2018-10-31 Thread Chris Rankin
Hi, I am trying to add this compiler-specific G++ option to CXXFLAGS: -frandom-seed=$(shell sha256sum $< | awk '{print $$1}') This option obviously needs to be parsed by GNU Make before G++ can use it, and so I am doing the following: add_compile_options(SHELL:"-frandom-seed=$(shell sha