run-cmake icon indicating copy to clipboard operation
run-cmake copied to clipboard

CTest failing on Windows due to no support for RPATH

Open davidebeatrici opened this issue 3 years ago • 4 comments

Tests fail to launch with error 0xc0000135 (STATUS_DLL_NOT_FOUND) if they depend on a DLL that is built in a different directory by the CMake project.

Can I specify the working directory for CTest?

davidebeatrici avatar Jun 08 '22 07:06 davidebeatrici

@davidebeatrici This could be helpful: https://stackoverflow.com/questions/43981966/cmake-how-to-specify-directory-where-ctest-should-look-for-executables

lukka avatar Jun 09 '22 05:06 lukka

Yes, thanks!

It would be great if the working directory could be specified for this action as well.

davidebeatrici avatar Jun 09 '22 08:06 davidebeatrici

@davidebeatrici i'd be glad if you could explain the feature request more in detail. Note that the action does not invoke ctest and all the action can do is to set a working directory when spawning the cmake process, if that would be useful.

lukka avatar Jun 13 '22 05:06 lukka

Switching directory works, as long as the path to the project is specified right after.

I'm not sure whether CTest retains the working directory though.

davidebeatrici avatar Jun 13 '22 07:06 davidebeatrici

Closing as more than one year of inactivity. Feel free to ask to reopen if needed.

lukka avatar Nov 05 '23 06:11 lukka