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