summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-14 23:33:33 +0100
committerAki <please@ignore.pl>2023-01-14 23:33:33 +0100
commit22974bb85df2028a7c56dd8ea7da406ab8bb4eee (patch)
tree711cd3a959b194a1f17f8cb43f72d86470467613
parent991d0acc82587b23ce7a96cf179638fba333135c (diff)
downloadmingw-w64-cmake-toolchains-22974bb85df2028a7c56dd8ea7da406ab8bb4eee.zip
mingw-w64-cmake-toolchains-22974bb85df2028a7c56dd8ea7da406ab8bb4eee.tar.gz
mingw-w64-cmake-toolchains-22974bb85df2028a7c56dd8ea7da406ab8bb4eee.tar.bz2
Fixed installation prefix definition
-rw-r--r--toolchain.cmake.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/toolchain.cmake.in b/toolchain.cmake.in
index b2d8d32..00f58f1 100644
--- a/toolchain.cmake.in
+++ b/toolchain.cmake.in
@@ -21,9 +21,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
-if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
- set(CMAKE_INSTALL_PREFIX "${MINGW_ROOT}")
-endif()
+set(CMAKE_INSTALL_PREFIX "${MINGW_ROOT}" CACHE PATH "Installation prefix")
find_program(MINGW_WINE wine)
if(MINGW_WINE)