-
Notifications
You must be signed in to change notification settings - Fork 73
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
target filename #244
Comments
I've added two getters: |
thx! |
Can you please check whether this problem still exists after the last presets refactoring? |
As far as I can tell the problem persists, but maybe I am just doing it wrong, so here is my test CMakePresets.json :
Switching preset via :CMakeSelectBuildPreset I can build both obj/linux-x64/Debug/test and obj/linux-x64/Release/test . But in both cases I fail to get the correct target path when build preset "Linux x64 Debug" is selected:
But when I switch Debug and Release in CMakePresets.json :
get_build_target_path() will return obj/linux-x64/Debug/test even if I select "Linux x64 Release" with :CMakeSelectBuildPreset and successfully build /obj/linux-x64/Release/test via :CMakeBuild . |
Hi, this is more of a question to be honest: I need the full path of a built executable. Eventually I came up with this:
which works fine, but I was wondering if there is a simpler/preferred way of achieving this without the kind of undocumented get_model_info()? If not, maybe a cmake.get_launch_file or something would be worth considering.
EDIT: another thing: get_launch_path() always returns the same path even if the current build preset changes the configuration. i.e:
Anyways thanks for the great plugin!
The text was updated successfully, but these errors were encountered: