Use correct condition for choosing unix shell / powershell

Choose based on host OS, not target OS, to support cross-compilation
This commit is contained in:
Arseniy Lartsev 2020-07-12 22:19:22 +02:00 committed by Aliaksei Levin
parent ba1c2781d8
commit f4dbfd88fc

View File

@ -740,7 +740,7 @@ set(MEMPROF_SOURCE
file(MAKE_DIRECTORY auto)
if (WIN32)
if (CMAKE_HOST_WIN32)
set(GIT_COMMIT_CMD powershell -ExecutionPolicy ByPass ./gen_git_commit_h.ps1)
else()
set(GIT_COMMIT_CMD ./gen_git_commit_h.sh)