[CMake] INTERPROCEDURAL_OPTIMIZATION still not using CMAKE__COMPILER_AR

2017-07-22 Thread lectem
Hello guys, So I downloaded the 3.9 release and thought my LTO nightmares were over but… cmake still isn’t using CMAKE__COMPILER_AR when linking on MSYS. I’m using the « MSYS Makefiles » generator, and when building an executable it still uses the plain ar instead of gcc-ar… CMAKE_CXX_COMPILE

Re: [CMake] POSITION_INDEPENDENT_CODE's [un]expected behaviour

2017-07-22 Thread Craig Scott
Thanks for the links. I've updated the relevant issue in gitlab and also added links to other related ones so that the full picture is captured more or less in one place. I'll ping the dev list to see if anyone has further updates or thoughts on the PIE picture for executables. From a very quick lo

Re: [CMake] Append to property COMPILE_DEFINITIONS

2017-07-22 Thread Craig Scott
On Tue, Jul 18, 2017 at 8:50 PM, Florian Lindner wrote: > #Works, but I would prefer to have it just once for all targets and at the > top of the file > set_property(TARGET testprecice APPEND > PROPERTY COMPILE_DEFINITIONS "FOO") > > > BTW, you don't include the -D when adding to COMPILE_DEFINI