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:
authormano-wii <germano.costa@ig.com.br>2019-06-16 01:16:04 +0300
committermano-wii <germano.costa@ig.com.br>2019-06-16 01:16:04 +0300
commit2f12b01c553b761e7e9d9f7731931dad93028dc2 (patch)
treeb046941c0a0df5fd604abc3aee671eb6b34b3417 /build_files
parent22b705d2cbe7fd12a181c6db096fb8d84b5c2240 (diff)
Fix Cmake Error.
`LAST_EXT` only works in versions 3.14 or greater.
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/macros.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index 4a03243af4e..5b995763111 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -189,13 +189,13 @@ function(blender_source_group
# Group by location on disk
source_group("Source Files" FILES CMakeLists.txt)
foreach(_SRC ${sources})
- get_filename_component(_SRC_EXT ${_SRC} LAST_EXT)
+ get_filename_component(_SRC_EXT ${_SRC} EXT)
if((${_SRC_EXT} MATCHES ".h") OR
(${_SRC_EXT} MATCHES ".hpp") OR
(${_SRC_EXT} MATCHES ".hh"))
set(GROUP_ID "Header Files")
- elseif(${_SRC_EXT} MATCHES ".glsl")
+ elseif(${_SRC_EXT} MATCHES ".glsl$")
set(GROUP_ID "Shaders")
else()
set(GROUP_ID "Source Files")