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
This commit is contained in:
juan-lunarg 2023-05-04 15:59:35 -06:00 committed by arcady-lunarg
parent 9d8c7b75c9
commit 9743480f3c

View File

@ -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()