[CMake] Generating MSVS solution files that can be passed around

Konstantin Tokarev annulen at yandex.ru
Thu Apr 19 11:50:59 EDT 2018



19.04.2018, 18:46, "Zaak Beekman" <zbeekman at gmail.com>:
> Greetings fellow CMake users!
>
> While I know this topic has been discussed intermittently over the years I was wondering if anyone had any further insight.
>
> The situation is that we have a client who works with other contractors who use almost exclusively windows and MSVS. This client wants to distribute MSVS solution files with the source code so that other contractors don’t have to install cmake. (There are some restrictions/red tape for installing additional software on the contractor machines…)

Then your best choice is probably Premake (http://premake.github.io/)

>
> I know the official party line is “CMake must use absolute paths, rerun CMake to regenerate the MSVS solution files.” I also know that CMAKE_USE_RELATIVE_PATHS was abandoned.
>
> Does anyone have any updated insight on this issue? Is there any mechanism, other than either manually or automatically editing the solution files to cause them to use relative paths?
>
> Another thought might be to include a statically linked CMake windows binary with the source, but I need to investigate whether the CMake licensing allows for that.
>
> Thanks,
> Zaak
>
> Izaak "Zaak" Beekman
>
> -------------------------------------------------------------------------------
> HPC Scientist
> ParaTools Inc.
> ibeekman at paratools.com
> 1509 16th St, NW
> Washington, DC 20036
> mobile: (917) 797-3239
> -------------------------------------------------------------------------------
>>
> ,--
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake


-- 
Regards,
Konstantin


More information about the CMake mailing list