From eb76ea06bdcbe390067c7a734ad24ea1b858650c Mon Sep 17 00:00:00 2001 From: Kachanovskiy Date: Fri, 16 Mar 2018 12:48:00 +0100 Subject: [PATCH] Fix for #2997 --- tests/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5cb183c0..503c3759 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -158,6 +158,10 @@ target_compile_definitions (unity PUBLIC "UNITY_USE_COMMAND_LINE_ARGS" "UNITY_EX target_include_directories (unity PUBLIC "${CMAKE_CURRENT_LIST_DIR}/../external/unity") +IF (MSVC_VERSION LESS 1700) + SET_SOURCE_FILES_PROPERTIES("${CMAKE_CURRENT_LIST_DIR}/../external/unity/unity.c" PROPERTIES LANGUAGE CXX) +ENDIF() + # add library and include dirs for all targets if (BUILD_SHARED) link_libraries(libzmq ${OPTIONAL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} unity)