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:
parent
ba1c2781d8
commit
f4dbfd88fc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user