Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-06-19 00:12:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-19 00:19:26 +0300
commit82afc58f91629ddfefbd1f8fe059343577837294 (patch)
treea40d4a4e95aedd24699ca48b685bd9a145d4afc4 /build_files
parentba152cc88d945af0392d36ce62452a277ba37e03 (diff)
CMake: cleanup, unset temporary var after use
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/macros.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index f65dd174486..4095b7bc815 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -179,12 +179,13 @@ function(blender_source_group
# remove ../'s
get_filename_component(_SRC_DIR ${_SRC} REALPATH)
get_filename_component(_SRC_DIR ${_SRC_DIR} DIRECTORY)
- string(FIND ${_SRC_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/" _POS)
- if(NOT _POS EQUAL -1)
+ string(FIND ${_SRC_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/" _pos)
+ if(NOT _pos EQUAL -1)
string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/" "" GROUP_ID ${_SRC_DIR})
string(REPLACE "/" "\\" GROUP_ID ${GROUP_ID})
source_group("${GROUP_ID}" FILES ${_SRC})
endif()
+ unset(_pos)
endforeach()
else()
# Group by location on disk
@@ -954,6 +955,7 @@ function(delayed_install
endif()
set_property(GLOBAL APPEND PROPERTY DELAYED_INSTALL_DESTINATIONS ${destination})
endforeach()
+ unset(f)
endfunction()
# note this is a function instead of a macro so that ${BUILD_TYPE} in targetdir