fix AppVeyor debug mode (account for '_debug' suffix)

This commit is contained in:
Wenzel Jakob
2017-03-06 16:26:49 +01:00
parent 31f6926095
commit 8e962f3b31
+2 -2
View File
@@ -340,10 +340,10 @@ if (TBB_BUILD_TESTS)
add_dependencies (tests test_${testname})
if (TBB_BUILD_SHARED)
target_link_libraries (test_${testname} tbb tbbmalloc)
target_compile_definitions(test_${testname} PRIVATE __TBB_LIB_NAME=tbb)
target_compile_definitions(test_${testname} PRIVATE __TBB_LIB_NAME=tbb$<$<CONFIG:Debug>:_debug>)
else ()
target_link_libraries (test_${testname} tbb_static tbbmalloc_static)
target_compile_definitions(test_${testname} PRIVATE __TBB_LIB_NAME=tbb_static)
target_compile_definitions(test_${testname} PRIVATE __TBB_LIB_NAME=tbb_static$<$<CONFIG:Debug>:_debug>)
endif ()
if (LIBRT_LIBRARIES)
target_link_libraries (test_${testname} ${LIBRT_LIBRARIES})