summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/dir-install-options-to-vars/cmake_install.cmake
diff options
context:
space:
mode:
authorJiang Yi <jiangyilism@gmail.com>2019-03-06 12:49:51 (GMT)
committerJiang Yi <jiangyilism@gmail.com>2019-03-16 17:31:25 (GMT)
commit73f23d1e0087a3b025ab7ba6b3e6195f19b40e1b (patch)
tree2b2d3e527cd174812505c6a0b3a3f339bc532c7e /Tests/RunCMake/CommandLine/dir-install-options-to-vars/cmake_install.cmake
parent7358f317e356dff8ef2c1cdd216b9e6063cd4d9a (diff)
downloadCMake-73f23d1e0087a3b025ab7ba6b3e6195f19b40e1b.zip
CMake-73f23d1e0087a3b025ab7ba6b3e6195f19b40e1b.tar.gz
CMake-73f23d1e0087a3b025ab7ba6b3e6195f19b40e1b.tar.bz2
cmake: add '--install <dir>' option
Fixes: #19023
Diffstat (limited to 'Tests/RunCMake/CommandLine/dir-install-options-to-vars/cmake_install.cmake')
-rw-r--r--Tests/RunCMake/CommandLine/dir-install-options-to-vars/cmake_install.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/dir-install-options-to-vars/cmake_install.cmake b/Tests/RunCMake/CommandLine/dir-install-options-to-vars/cmake_install.cmake
new file mode 100644
index 0000000..fd4e67d
--- /dev/null
+++ b/Tests/RunCMake/CommandLine/dir-install-options-to-vars/cmake_install.cmake
@@ -0,0 +1,15 @@
+if(CMAKE_INSTALL_PREFIX)
+ message("CMAKE_INSTALL_PREFIX is ${CMAKE_INSTALL_PREFIX}")
+endif()
+
+if(CMAKE_INSTALL_COMPONENT)
+ message("CMAKE_INSTALL_COMPONENT is ${CMAKE_INSTALL_COMPONENT}")
+endif()
+
+if(CMAKE_INSTALL_CONFIG_NAME)
+ message("CMAKE_INSTALL_CONFIG_NAME is ${CMAKE_INSTALL_CONFIG_NAME}")
+endif()
+
+if(CMAKE_INSTALL_DO_STRIP)
+ message("CMAKE_INSTALL_DO_STRIP is ${CMAKE_INSTALL_DO_STRIP}")
+endif()