Skip to content

Commit

Permalink
Fix unquoted CMake variable references
Browse files Browse the repository at this point in the history
The previous version did not handle paths containing whitespace
correctly.

Related to glfw#2256
  • Loading branch information
elmindreda committed Mar 31, 2023
1 parent fbdb53b commit 23ab972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 23ab972

Please sign in to comment.