0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-14 01:37:56 +08:00

Fix running tests from cmake on linux.

This commit is contained in:
Richard Newton 2013-08-17 14:39:38 +01:00
parent e1b2b649fb
commit 70a1fbee7a

View File

@ -620,7 +620,11 @@ foreach(test ${tests})
if(RT_LIBRARY)
target_link_libraries(${test} ${RT_LIBRARY})
endif()
add_test(NAME ${test} WORKING_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug COMMAND ${test})
if(WIN32)
add_test(NAME ${test} WORKING_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug COMMAND ${test})
else()
add_test(NAME ${test} COMMAND ${test})
endif()
endforeach()
#-----------------------------------------------------------------------------