From 02f1a706289ab0f3e589cb834ce48a1632a4ea6f Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Thu, 13 May 2021 04:37:28 +0200 Subject: [PATCH] Use relative paths in the install command to support --prefix --- CMakeLists.txt | 2 +- cmake.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f15b70f..a9e02c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,7 +116,7 @@ install( TARGETS cmkr DESTINATION - "${CMAKE_INSTALL_PREFIX}/bin" + bin COMPONENT cmkr ) diff --git a/cmake.toml b/cmake.toml index bd8e0e8..16307d0 100644 --- a/cmake.toml +++ b/cmake.toml @@ -17,4 +17,4 @@ link-libraries = ["toml11", "ghc_filesystem", "mpark_variant", "ordered_map"] [[install]] targets = ["cmkr"] -destination = "${CMAKE_INSTALL_PREFIX}/bin" +destination = "bin"