[CMake] target_compile_features no known features for CXX compiler for clang 9.0

2018-03-20 Thread Rick Mann
Trying to build Ceres, I'm running into an issue in which CMake 3.11.0-rc3 doesn't seem to recognize the clang that comes with the latest Xcode (Version 9.2 (9C40b)). Googling turns up similar, but old results, that seem to suggest one needs to update CMake. But -rc4 is the only more recent vers

Re: [CMake] CTest extra tests

2018-03-20 Thread Adam Getchell
> On Mar 20, 2018, at 9:45 AM, Bill Hoffman wrote: > > Must be coming from some macro, cmake does not automatically add any tests. > You could run cmake --trace and look at the output and find out where the > add_test call is coming from. Thanks, that was it! The create_single_source_cgal_

Re: [CMake] [proposal] Support for modern CMake

2018-03-20 Thread Mateusz Loskot
On 20 March 2018 at 21:52, Alexander Neundorf wrote: > On 2018 M03 20, Tue 21:14:30 CET Mateusz Loskot wrote: > ... >> Why I can not write: >> >> target_use(app Boost::system Boost::filesystem) >> >> or >> >> target_use_targets(app Boost::system Boost::filesystem) >> >> and, actually read and unde

Re: [CMake] [proposal] Support for modern CMake

2018-03-20 Thread Alexander Neundorf
On 2018 M03 20, Tue 21:14:30 CET Mateusz Loskot wrote: ... > Why I can not write: > > target_use(app Boost::system Boost::filesystem) > > or > > target_use_targets(app Boost::system Boost::filesystem) > > and, actually read and understand what I'm doing? > > (If you're now typing "why don't yo

[CMake] [proposal] Support for modern CMake

2018-03-20 Thread Mateusz Loskot
Hi, I've used CMake for a 10+ years now. I'm not a newbie, but I still discover CMake awesomeness as well as its traps. Now, I'm trying to catch up with the modern CMake party and I obviously watched the famous Daniel Pfeifer's lecture [1] (I'm late, I know!) I asked a simple question on #cmake a

Re: [CMake] CTest extra tests

2018-03-20 Thread Bill Hoffman
Must be coming from some macro, cmake does not automatically add any tests. You could run cmake --trace and look at the output and find out where the add_test call is coming from. On Sun, Mar 18, 2018 at 5:39 PM, Adam Getchell wrote: > Hello all, > > I’m running into unexpected behavior when us

[CMake] file(TO_NATIVE_PATH ... ) and cross-compiling

2018-03-20 Thread Miroslav Keš
Hi! I have question concerning the file(TO_NATIVE_PATH ...) behavior. The documentation says: "The TO_NATIVE_PATH mode converts a cmake-style into a native path with platform-specific slashes (\ on Windows and / elsewhere)." ... but it doesn't say if the decision is made based on the CMAKE_SY