summaryrefslogtreecommitdiff
path: root/docs/group__zeroinit.js
diff options
context:
space:
mode:
authorYupeng Zhang <yupeng.zhang@autodesk.com>2021-05-10 12:01:03 -0400
committerYupeng Zhang <yupeng.zhang@autodesk.com>2021-05-10 12:01:03 -0400
commit712e7d3de087dad03dd4a1129d8cadbc44f72c9e (patch)
tree3deea5c9536ea453a4cef35b3c3f9cd99d21e992 /docs/group__zeroinit.js
parentb19da8e362acae8944c60a40cf5c40c8f5ebeb44 (diff)
[CMake] Respect CMAKE_INSTALL_PREFIX at install time
The standard way of cmake install to a destination folder is the following pattern: ```shell cd <BUILD_DIR> cmake <SRC_DIR> cmake --build <BUILD_DIR> cmake --install <BUILD_DIR> --prefix <INSTALL_DIR> ``` Right now, the `<INSTALL_DIR>` folder passed in cmake --install command is ignored, and always installed into `C:/Program Files(x86)/...`, which is the default `CMAKE_INSTALL_PREFIX` value passed at the `cmake <SRC_DIR>` call. Thus, it is not possible to install the binaries into different folders without rerun the cmake/build process. The important thing here is, the cmake variable `CMAKE_INSTALL_PREFIX` is supposed to be passed at `cmake --install` time with the `--prefix` argument. In cmake file, `install` with relative path will use that prefix automaticlly. And it is the best practice to not include CMAKE_INSTALL_PREFIX in the `install(... DESTINATION )` argument: ``` In particular, there is no need to make paths absolute by prepending CMAKE_INSTALL_PREFIX; this prefix is used by default if the DESTINATION is a relative path. ``` referenced from: https://cmake.org/cmake/help/latest/command/install.html
Diffstat (limited to 'docs/group__zeroinit.js')
0 files changed, 0 insertions, 0 deletions