CMake: use functions instead of macros

Reduces issues with vars leaking into the parent scope.
This commit is contained in:
Campbell Barton
2015-06-17 09:16:17 +10:00
parent ecdbe3cc63
commit 81b37f5e92
4 changed files with 147 additions and 147 deletions

View File

@@ -124,12 +124,12 @@ all: FORCE
@echo
@echo Configuring Blender ...
# if test ! -f $(BUILD_DIR)/CMakeCache.txt ; then \
# $(CMAKE_CONFIG); \
# fi
# # if test ! -f $(BUILD_DIR)/CMakeCache.txt ; then \
# # $(CMAKE_CONFIG); \
# # fi
# do this always incase of failed initial build, could be smarter here...
$(CMAKE_CONFIG)
# # do this always incase of failed initial build, could be smarter here...
@$(CMAKE_CONFIG)
@echo
@echo Building Blender ...