mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-23 19:51:19 +00:00
Make sure to use the proper directory when running RUN_TESTS from MSVC. Note, this doesn't work in Release.
This commit is contained in:
parent
79d2ad79ac
commit
f19b324d28
|
@ -101,8 +101,16 @@ IF(PVRTEXLIB_FOUND)
|
|||
TARGET_LINK_LIBRARIES(${TEST_NAME} FasTCIO)
|
||||
TARGET_LINK_LIBRARIES(${TEST_NAME} FasTCCore)
|
||||
|
||||
ADD_TEST(${TEST_NAME}
|
||||
${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME}
|
||||
)
|
||||
IF(MSVC)
|
||||
ADD_TEST(${TEST_NAME}
|
||||
${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/Debug/${TEST_NAME}
|
||||
)
|
||||
ELSE()
|
||||
ADD_TEST(${TEST_NAME}
|
||||
${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME}
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
ENDIF(PVRTEXLIB_FOUND)
|
||||
|
|
Loading…
Reference in a new issue