This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

pc-ble-driver, CMake, absolute paths in the VS files

The pc-ble-driver project uses CMake to generate Solution and Project files for the Windows build of the project. CMake uses absolute paths in these generated files. I can't pick this code up and move it anywhere, or it won't build.

cmake.org/.../CMake_FAQ

So, if I manually edit all the Visual Studio files generated by CMake and convert absolute paths to relative ones, that FAQ not withstanding, can I expect the Solution to build?

Parents
  • Hi,

    I don't see any reason why changing the paths in the generated Visual Studio project to relative paths would not work. The problem is that this is a manual operation that needs to be done each time the project is generated by CMake.

    Note that I have not tested this myself. If you try it, could you report back if you see any problems? In case any other users is wondering about this as well.

    Best regards,

    Jørgen

Reply
  • Hi,

    I don't see any reason why changing the paths in the generated Visual Studio project to relative paths would not work. The problem is that this is a manual operation that needs to be done each time the project is generated by CMake.

    Note that I have not tested this myself. If you try it, could you report back if you see any problems? In case any other users is wondering about this as well.

    Best regards,

    Jørgen

Children
Related