From 1ece2be1fcf04056b730a7809d79cb5ea897ebba Mon Sep 17 00:00:00 2001 From: Satvik Kumar Date: Wed, 19 Feb 2014 16:12:10 +1100 Subject: [PATCH] Changed the hard coded path used in the qtjsruntime tests The hard coded path does not work on Windows as MSBuild creates the target output in a folder dependant on the build configuration. Instead of using a hard coded path we can use the target name here as the add_executable command will create the executable based on the platform specific location http://www.cmake.org/cmake/help/v2.8.12/cmake.html#command:add_executable --- webodf/tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webodf/tests/CMakeLists.txt b/webodf/tests/CMakeLists.txt index e7b0368c..60c9bd59 100644 --- a/webodf/tests/CMakeLists.txt +++ b/webodf/tests/CMakeLists.txt @@ -23,7 +23,7 @@ if (QT4_FOUND) COPY_FILES(tests_qtjsruntimetest ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/_qtjsruntimetest ${TESTS_TESTFILES} ) add_custom_target(qtjsruntimetest ALL - COMMAND ${CMAKE_BINARY_DIR}/programs/qtjsruntime/qtjsruntime ${RUNTIME} tests.js + COMMAND qtjsruntime ${RUNTIME} tests.js WORKING_DIRECTORY _qtjsruntimetest DEPENDS NodeJS ${tests_qtjsruntimetest} qtjsruntime manifest.json-target )