mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
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
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user