mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
CMake: cleanup, unset temporary var after use
This commit is contained in:
parent
ba152cc88d
commit
82afc58f91
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue