Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for integrated CMake support from Visual Studio #1

Open
micst opened this issue Dec 18, 2017 · 1 comment
Open

Add Support for integrated CMake support from Visual Studio #1

micst opened this issue Dec 18, 2017 · 1 comment

Comments

@micst
Copy link
Owner

micst commented Dec 18, 2017

Currently CTestAdapter only works with generated solution which are opened using Visual Studio. When opening a CMake codebase with the new 2017 "open folder" mechanism, it does not work.

@micst
Copy link
Owner Author

micst commented Dec 18, 2017

original issue in CTestTestAdapter from @puetzk, opened on Oct. 26 2017:

When using the new VS2017 15.3 built-in CMake project support, BuildConfiguration.SolutionDir returns the returns the folder containing the CMakeLists.txt, since there is no .sln file. This eventually causes CTestContainerDiscoverer.UpdateListOfValidTests to use the wrong working dir for its ctest -N call, and thus to discover no tests (because the CTestTestfile.cmake files are in the binary dir, not the source dir).

This is different than using the CMake "Visual Studio..." generator, where CMake generates .vcxproj and .sln files, because in that case the generated solution file is in the CMAKE_BINARY_DIR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant