diff options
author | Craig Scott <craig.scott@crascit.com> | 2021-03-26 11:17:01 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2021-03-26 11:17:57 (GMT) |
commit | 635431a0c9696c8c8be5d94e6afdc044afd5384c (patch) | |
tree | 1924ebde8864118c3bfe4a8151c9ef04c838bc86 /Tests/RunCMake/File_Generate | |
parent | 4ceb0ca59ea13f1f3f76414a214fbbd9ecb57707 (diff) | |
download | CMake-635431a0c9696c8c8be5d94e6afdc044afd5384c.zip CMake-635431a0c9696c8c8be5d94e6afdc044afd5384c.tar.gz CMake-635431a0c9696c8c8be5d94e6afdc044afd5384c.tar.bz2 |
Tests: Check host platform instead of target for running stat
Diffstat (limited to 'Tests/RunCMake/File_Generate')
-rw-r--r-- | Tests/RunCMake/File_Generate/UseSourcePermissionsVerify.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/File_Generate/UseSourcePermissionsVerify.cmake b/Tests/RunCMake/File_Generate/UseSourcePermissionsVerify.cmake index 8b30f96..31494d5 100644 --- a/Tests/RunCMake/File_Generate/UseSourcePermissionsVerify.cmake +++ b/Tests/RunCMake/File_Generate/UseSourcePermissionsVerify.cmake @@ -2,7 +2,7 @@ if(NOT EXISTS "${generatedFile}") message(SEND_ERROR "Missing generated file:\n ${generatedFile}") endif() -if (UNIX) +if (CMAKE_HOST_UNIX) find_program(STAT_EXECUTABLE NAMES stat) if(NOT STAT_EXECUTABLE) return() |