From 9743480f3cb2c75957bc71383e1cc43d77f730e5 Mon Sep 17 00:00:00 2001 From: juan-lunarg Date: Thu, 4 May 2023 15:59:35 -0600 Subject: [PATCH] cmake: Don't set CMAKE_INSTALL_PREFIX While trying to set a default for CMAKE_INSTALL_PREFIX sounds appealing it has multiple issues. It's particularly problematic for open source projects where many users try to accomplish many different things. It's also conflicting with the new way of installing with cmake IE: `cmake --install build --prefix build/install` I've already removed similar logic in various other Khronos repositories a while ago to address similar complaints. closes #1015 --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e38b5e3a..0af388b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,10 +104,6 @@ else() endif() option(ENABLE_CTEST "Enables testing" ON) -if(ENABLE_GLSLANG_INSTALL AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND WIN32) - set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "..." FORCE) -endif() - if(ENABLE_CTEST) include(CTest) endif()