Commit b2983b2f by Gennadiy Civil

Merge pull request #2331 from adambadura:CMakeCorrection

PiperOrigin-RevId: 260509310
parents bb481d2d 1be5ce09
...@@ -142,7 +142,7 @@ if (gmock_build_tests) ...@@ -142,7 +142,7 @@ if (gmock_build_tests)
"$project_bin = \"${CMAKE_BINARY_DIR}/bin/$<CONFIG>\" "$project_bin = \"${CMAKE_BINARY_DIR}/bin/$<CONFIG>\"
$env:Path = \"$project_bin;$env:Path\" $env:Path = \"$project_bin;$env:Path\"
& $args") & $args")
elseif (MINGW) elseif (MINGW OR CYGWIN)
file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/RunTest.ps1" file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/RunTest.ps1"
CONTENT CONTENT
"$project_bin = (cygpath --windows ${CMAKE_BINARY_DIR}/bin) "$project_bin = (cygpath --windows ${CMAKE_BINARY_DIR}/bin)
...@@ -162,7 +162,7 @@ $env:Path = \"$project_bin;$env:Path\" ...@@ -162,7 +162,7 @@ $env:Path = \"$project_bin;$env:Path\"
cxx_test(gmock-generated-matchers_test gmock_main) cxx_test(gmock-generated-matchers_test gmock_main)
cxx_test(gmock-internal-utils_test gmock_main) cxx_test(gmock-internal-utils_test gmock_main)
cxx_test(gmock-matchers_test gmock_main) cxx_test(gmock-matchers_test gmock_main)
if (MINGW) if (MINGW OR CYGWIN)
target_compile_options(gmock-matchers_test PRIVATE "-Wa,-mbig-obj") target_compile_options(gmock-matchers_test PRIVATE "-Wa,-mbig-obj")
endif() endif()
cxx_test(gmock-more-actions_test gmock_main) cxx_test(gmock-more-actions_test gmock_main)
......
...@@ -188,7 +188,7 @@ if (gtest_build_tests) ...@@ -188,7 +188,7 @@ if (gtest_build_tests)
"$project_bin = \"${CMAKE_BINARY_DIR}/bin/$<CONFIG>\" "$project_bin = \"${CMAKE_BINARY_DIR}/bin/$<CONFIG>\"
$env:Path = \"$project_bin;$env:Path\" $env:Path = \"$project_bin;$env:Path\"
& $args") & $args")
elseif (MINGW) elseif (MINGW OR CYGWIN)
file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/RunTest.ps1" file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/RunTest.ps1"
CONTENT CONTENT
"$project_bin = (cygpath --windows ${CMAKE_BINARY_DIR}/bin) "$project_bin = (cygpath --windows ${CMAKE_BINARY_DIR}/bin)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment