summaryrefslogtreecommitdiffstats
path: root/Tests/VSResource
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-30 18:10:45 (GMT)
committerBrad King <brad.king@kitware.com>2017-05-30 19:30:40 (GMT)
commit781eb380f47c743ddb9f3ad65c6f7d3eda7af171 (patch)
treebd4e35ff8c7cb429136adfc5b7f8a2a219a0609b /Tests/VSResource
parent0bb67499c3f00a507be7af9ed524d21b0c469ad0 (diff)
downloadCMake-781eb380f47c743ddb9f3ad65c6f7d3eda7af171.zip
CMake-781eb380f47c743ddb9f3ad65c6f7d3eda7af171.tar.gz
CMake-781eb380f47c743ddb9f3ad65c6f7d3eda7af171.tar.bz2
Tests: Fix VSResource test on MinGW with Ninja and a space in the path
Diffstat (limited to 'Tests/VSResource')
-rw-r--r--Tests/VSResource/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/VSResource/CMakeLists.txt b/Tests/VSResource/CMakeLists.txt
index 3b9cfc3..ee660ed 100644
--- a/Tests/VSResource/CMakeLists.txt
+++ b/Tests/VSResource/CMakeLists.txt
@@ -18,9 +18,8 @@ if(CMAKE_RC_COMPILER MATCHES windres)
message(STATUS "CMAKE_RC_COMPILER MATCHES windres")
add_definitions(/DCMAKE_RCDEFINE=test.txt)
add_definitions(/DCMAKE_RCDEFINE_NO_QUOTED_STRINGS)
- if(MSYS AND CMAKE_CURRENT_BINARY_DIR MATCHES " ")
- # windres cannot handle spaces in include dir, and
- # for the MSys shell we do not convert to shortpath.
+ if(CMAKE_CURRENT_BINARY_DIR MATCHES " ")
+ # windres cannot handle spaces in include dir
set(CMAKE_RC_NO_INCLUDE 1)
endif()
elseif(MSVC60)