What is INSTALL_DIR useful for in ExternalProject_Add command?

我们两清 提交于 2019-12-03 23:59:19
Vitalii Minnakhmetov

From what I found in this discussion https://www.mail-archive.com/cmake@cmake.org/msg51663.html (scroll to the end of the page to navigate through the thread messages) it is indeed pretty common thing to use CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/contrib

Furthermore, lurking through the ExternalProject.cmake module I found out that the only effect setting this directory has is that CMake will create directory specified in INSTALL_DIR before doing anything else.

Also, it will set the property that you can gather through ExternalProject_Get_Property(${project_name} install_dir) command.

And that's pretty much it.

// As of CMake version 3.2.2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!