Correct CMake to cover Cygwin

This commit is contained in:
Adam Badura
2019-07-11 23:22:35 +02:00
parent 2134e3fd85
commit 1be5ce0907
2 changed files with 3 additions and 3 deletions

View File

@@ -188,7 +188,7 @@ if (gtest_build_tests)
"$project_bin = \"${CMAKE_BINARY_DIR}/bin/$<CONFIG>\"
$env:Path = \"$project_bin;$env:Path\"
& $args")
elseif (MINGW)
elseif (MINGW OR CYGWIN)
file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/RunTest.ps1"
CONTENT
"$project_bin = (cygpath --windows ${CMAKE_BINARY_DIR}/bin)