https://github.com/Kitware/CMake
Revision d9a6e0ffc82fbc460289c6b0808eff27ac316235 authored by Craig Scott on 10 September 2022, 08:22:18 UTC, committed by Craig Scott on 10 September 2022, 08:23:21 UTC
The unset() command was using __cmake_contentNameLower before that
variable was restored from the __cmake_fcCurrentVarsStack. That means
if there had been a nested call to FetchContent_MakeAvailable(), the wrong
variable name would have been cleared (the nested name instead of the
one from the current call). That would have left the variable set upon return,
blocking the dependency provider from seeing any further calls to
FetchContent_MakeAvailable() in the current variable scope or below for the
current dependency.
1 parent a2f9e67
Raw File
Tip revision: d9a6e0ffc82fbc460289c6b0808eff27ac316235 authored by Craig Scott on 10 September 2022, 08:22:18 UTC
FetchContent: Fix unsetting wrong variable name after provider returns
Tip revision: d9a6e0f
CMakeFindSublimeText2.cmake
# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.


# This file is included in CMakeSystemSpecificInformation.cmake if
# the Sublime Text 2 extra generator has been selected.

find_program(CMAKE_SUBLIMETEXT_EXECUTABLE
    NAMES subl3 subl sublime_text
    PATHS
        "/Applications/Sublime Text.app/Contents/SharedSupport/bin"
        "/Applications/Sublime Text 3.app/Contents/SharedSupport/bin"
        "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin"
        "$ENV{HOME}/Applications/Sublime Text.app/Contents/SharedSupport/bin"
        "$ENV{HOME}/Applications/Sublime Text 3.app/Contents/SharedSupport/bin"
        "$ENV{HOME}/Applications/Sublime Text 2.app/Contents/SharedSupport/bin"
        "/opt/sublime_text"
        "/opt/sublime_text_3"
    DOC "The Sublime Text executable")

if(CMAKE_SUBLIMETEXT_EXECUTABLE)
  set(CMAKE_OPEN_PROJECT_COMMAND "${CMAKE_SUBLIMETEXT_EXECUTABLE} --project <PROJECT_FILE>" )
endif()
back to top