From 19418730dd90e33dbb7c5cf7e2e5fa3be227cb7e Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 15 May 2013 09:11:25 +0200 Subject: [PATCH] Add a special regfile for filetools test on windows --- src/support/tests/CMakeLists.txt | 3 +++ src/support/tests/regfiles/filetools.MSVC | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 src/support/tests/regfiles/filetools.MSVC diff --git a/src/support/tests/CMakeLists.txt b/src/support/tests/CMakeLists.txt index a6d0578030..3e6198f649 100644 --- a/src/support/tests/CMakeLists.txt +++ b/src/support/tests/CMakeLists.txt @@ -37,6 +37,9 @@ foreach(_src ${check_PROGRAMS}) sources(${_src} ${_src}.cpp dummy_functions.cpp boost.cpp) string(REPLACE "check_" "" _srcx ${_src}) set(src_data_file "${TOP_SRC_DIR}/src/support/tests/regfiles/${_srcx}") + if (MSVC AND EXISTS "${src_data_file}.MSVC") + set(src_data_file "${src_data_file}.MSVC") + endif() set(created_data_file "${CMAKE_CURRENT_BINARY_DIR}/regfiles/${_src}_data") add_test(NAME support/${_srcx} COMMAND ${CMAKE_COMMAND} -DCommand=$ diff --git a/src/support/tests/regfiles/filetools.MSVC b/src/support/tests/regfiles/filetools.MSVC new file mode 100644 index 0000000000..91d80a259d --- /dev/null +++ b/src/support/tests/regfiles/filetools.MSVC @@ -0,0 +1,3 @@ +C:/bar +C:/foo/bar +C:/foo/bar