-
Notifications
You must be signed in to change notification settings - Fork 19
Run does not recognize root path #15
Comments
Can't reproduce. |
So the program runs correctly. The issue is that you can't load resources. Are they located at the source directory? |
This tells me nothing. But I assume that you load resources from the source directory. You shouldn't. You need to configure CMake to copy all your data to your build directory automatically. |
No, you should locate the resources at the |
I moved to bin and works. To specify or config cmake to copy the assets folder to build/linux-debug/bin, How it could be? Edit: Also edited the neovim.json with runDir: ".." and works without moving the assets to bin. |
I made it, with file(COPY assets DESTINATION ${CMAKE_BINARY_DIR}/bin) |
Great. Yes, this is how it usually done. |
Bug description
Using :Cmake run or :CMake Build_and_run does not recognize the root path. Because my assets are in the rootpath. But if I made this "./build/linux-debug/bin/program_name it works excellent.
Steps to reproduce
:Cmake run or :CMake Build_and_run
Just installed the plugin.
Expected behavior
Run the program, loading the rootpath.
Screenshots
Environment
Additional context
For this, its the only problem, but if it could be change the settings:
This settings could be also available in :CMake menu? Like :CMake select_target
The text was updated successfully, but these errors were encountered: