Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 CMake project support?
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

loger9
New Member

2 Posts

Posted - Sep 25 2024 :  1:17:46 PM  Show Profile  Reply with Quote
Hello, I am porting my solution into a CMake project to be able to use Ninja and ccache. It is an out-of-source build (https://cgold.readthedocs.io/en/latest/tutorials/out-of-source.html), just a nice thing to do. It all works fine (weird UX all around, but hey almost 10 times faster in some scenarios ).

There is one problem though: Visual Assist displays absolutely nothing when searching files, it can only find the files that are in the Folder View in Solution Explorer (which is only the root CMakeLists.txt and the CMakePresets.json file). I think Visual Assist might not support out of source builds at all.

To make the point clear, this is what you see in Folder View:


And this is what you see in CMake Targets view (all the files and modules are there):


Would be nice to support this! :)

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Sep 26 2024 :  09:04:21 AM  Show Profile  Reply with Quote
Would you be able to send me a very simple CMake project that is structured like this, so I can try and understand what you are doing? If so, please send me the files via email:

[email protected]

including this thread ID or URL in the description, so we can match it up.

Or do you know of an example I can download to look at?

It sounds like CMake is pulling in the source code from another directory, is this correct?

zen is the art of being at one with the two'ness
Go to Top of Page

loger9
New Member

2 Posts

Posted - Sep 27 2024 :  07:11:33 AM  Show Profile  Reply with Quote
> Would you be able to send me a very simple CMake project that is structured like this, so I can try and understand what you are doing?

I can't share this project in particular but I can easily recreate a small one. I will send it to your email.

> It sounds like CMake is pulling in the source code from another directory, is this correct?

This is correct! I didn't explain that well.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Sep 27 2024 :  10:56:58 AM  Show Profile  Reply with Quote
I have the sample, thank you for that. I have replied via email:

case=165007

zen is the art of being at one with the two'ness
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000