[CMake] What is --build-two-config good for

2018-12-05 Thread Torsten Robitzki
Hello, can someone of you tell me, what the purpose of the CTest —build-two-config command line option is? The documentation says, that it is part of the CTest Build and Test Mode and that it will cause CTest to run CMake twice. I’ve checked the code and yes, it does exactly this. But why? What

Re: [CMake] New version forces rebuild all?

2018-12-05 Thread Cristian Adam
On Wed, Dec 5, 2018 at 10:19 PM Andy wrote: > (previously I send this mail not to mail list, but user) > Maybe my cmake files are bad? > I have created test project > https://gitlab.com/andrzejbor/test_rebuild_all > after commit is rebuild whole project > what I might change? > I don't want movin

[CMake] New version forces rebuild all?

2018-12-05 Thread Andy
(previously I send this mail not to mail list, but user) Maybe my cmake files are bad? I have created test project https://gitlab.com/andrzejbor/test_rebuild_all after commit is rebuild whole project what I might change? I don't want moving all but .git to one directory src/ -- Powered by www.ki

[CMake] Imported targets fail to be added to the FOLDER property.

2018-12-05 Thread Albrecht Fritzsche
Hi, is there a way to add an imported target to the IDE similar to the way eg executable targets are added? In the following code the last line seems to have no effect, ie when opening the generated Visual Studio solution neither the helloWorld.cpp nor the folder "tests" is shown set_property

Re: [CMake] target_compile_features() uses incorrect C++ version

2018-12-05 Thread Deniz Bahadir
Am 05.12.18 um 14:37 schrieb Kim Walisch: OK thanks, I have created a new issue at: https://gitlab.kitware.com/cmake/cmake/issues/18686 Greetings, Kim Thanks, great. Best regards, Deniz PS: Next time better answer to the mailing-list. ;-) This is probably interesting for others that read yo

Re: [CMake] target_compile_features() uses incorrect C++ version

2018-12-05 Thread Deniz Bahadir
Am 05.12.18 um 13:40 schrieb Kim Walisch: Hi, I have realized that my C++ primesieve project (https://github.com/kimwalisch/primesieve) is compiled using -std=gnu++11 with GCC 7.3 and CMake 3.10 (on Ubuntu 18.10 x64) even though the default C++ version used by GCC 7.3 is C++14 as checked belo

[CMake] target_compile_features() uses incorrect C++ version

2018-12-05 Thread Kim Walisch
Hi, I have realized that my C++ primesieve project ( https://github.com/kimwalisch/primesieve) is compiled using -std=gnu++11 with GCC 7.3 and CMake 3.10 (on Ubuntu 18.10 x64) even though the default C++ version used by GCC 7.3 is C++14 as checked below: $ g++ -dM -E -x c++ /dev/null | grep -F _