cmake: Use CMAKE_COMMAND instead of "cmake"

Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
This commit is contained in:
Frederic L 2019-02-03 01:15:46 -03:00 committed by ReinUsesLisp
parent e6a2245304
commit 8ff2ce5207
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
# like this allows for much better caching since it doesn't force the user to recompile binary shaders every update # like this allows for much better caching since it doesn't force the user to recompile binary shaders every update
set(VIDEO_CORE "${CMAKE_SOURCE_DIR}/src/video_core") set(VIDEO_CORE "${CMAKE_SOURCE_DIR}/src/video_core")
add_custom_command(OUTPUT scm_rev.cpp add_custom_command(OUTPUT scm_rev.cpp
COMMAND cmake -DSRC_DIR="${CMAKE_SOURCE_DIR}" -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake" COMMAND ${CMAKE_COMMAND} -DSRC_DIR="${CMAKE_SOURCE_DIR}" -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake"
DEPENDS DEPENDS
# WARNING! It was too much work to try and make a common location for this list, # WARNING! It was too much work to try and make a common location for this list,
# so if you need to change it, please update CMakeModules/GenerateSCMRev.cmake as well # so if you need to change it, please update CMakeModules/GenerateSCMRev.cmake as well