Fix unquoted CMake variable references

The previous version did not handle paths containing whitespace
correctly.

Related to #2256
This commit is contained in:
Camilla Löwy 2023-03-28 17:29:33 +02:00
parent fbdb53b9ca
commit 23ab972724

View File

@ -12,7 +12,7 @@ endif()
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
string(COMPARE EQUAL ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} GLFW_STANDALONE)
string(COMPARE EQUAL "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_SOURCE_DIR}" GLFW_STANDALONE)
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" ${GLFW_STANDALONE})