[CMake] ExternalProject_Add Visual Studio build Install Target

J Decker d3ck0r at gmail.com
Thu Apr 25 04:27:03 EDT 2019


I've had to make this modification the last few versions...

cmake/share/cmake-3.14/Modules/ExternalProject.cmake

line 1870 from

      if(step STREQUAL "INSTALL")
        list(APPEND args --target install)
      endif()

to

      if(step STREQUAL "INSTALL")
        list(APPEND args --target INSTALL)
      endif()

Otherwise, when building with visual studio, and trying to run the
<project>-install.rule  rule, it says 'no such project'

I don't think the same issue happens when building from the command line.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190425/a522e264/attachment-0001.html>


More information about the CMake mailing list