Re: [cmake-developers] Link element in C# project causing issues with binary dir

2018-06-29 Thread Robert Dailey
Submitted a fix here: https://gitlab.kitware.com/cmake/cmake/merge_requests/2177 David: I think the source dir is stripped because that path is effectively the same as source_group() command. It's a path relative to the root of the solution explorer panel. That's a big assumption, I honestly

Re: [cmake-developers] Link element in C# project causing issues with binary dir

2018-06-29 Thread David Cole via cmake-developers
The code looks wrong like this, too: You shouldn't strip the source directory from the path of the file name unless the character after the source directory is "/" or "\\", should you? If the thing you're trying to end up with is a path name to the file under the source directory, then this is

Re: [cmake-developers] Link element in C# project causing issues with binary dir

2018-06-29 Thread Robert Dailey
According to the code, the logic is wrong: void cmVisualStudio10TargetGenerator::GetCSharpSourceLink( cmSourceFile const* sf, std::string& link) { std::string f = sf->GetFullPath(); if (!this->InSourceBuild) { const std::string stripFromPath =

[cmake-developers] Link element in C# project causing issues with binary dir

2018-06-29 Thread Robert Dailey
When I use configure_file() to generate AssemblyInfo.cs, which I allow to go to the CMAKE_CURRENT_BINARY_DIR, Visual Studio 2017 reports: Warning The file 'E:\code\layout-composer-build\Properties\AssemblyInfo.cs' could not be added to the project. Cannot add a link to the file

[cmake-developers] [ANNOUNCE] CMake 3.12.0-rc2 is ready for testing

2018-06-29 Thread Robert Maynard
I am proud to announce the second CMake 3.12 release candidate. https://cmake.org/download/ Documentation is available at: https://cmake.org/cmake/help/v3.12 Release notes appear below and are also published at https://cmake.org/cmake/help/v3.12/release/3.12.html Some of the more