Fixed perf target
This commit is contained in:
parent
eb1790e5f1
commit
a13dfc7f70
@ -1586,11 +1586,19 @@ endif()
|
|||||||
# performance tests
|
# performance tests
|
||||||
#-----------------------------------
|
#-----------------------------------
|
||||||
if(BUILD_PERF_TESTS AND PYTHON_EXECUTABLE)
|
if(BUILD_PERF_TESTS AND PYTHON_EXECUTABLE)
|
||||||
add_custom_target(perf
|
if(CMAKE_VERSION VERSION_GREATER "2.8.2")
|
||||||
${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/modules/ts/misc/run.py" --configuration $<CONFIGURATION> "${CMAKE_BINARY_DIR}"
|
add_custom_target(perf
|
||||||
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
|
${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/modules/ts/misc/run.py" --configuration $<CONFIGURATION> "${CMAKE_BINARY_DIR}"
|
||||||
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/modules/ts/misc/run.py"
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
|
||||||
)
|
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/modules/ts/misc/run.py"
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
add_custom_target(perf
|
||||||
|
${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/modules/ts/misc/run.py" "${CMAKE_BINARY_DIR}"
|
||||||
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
|
||||||
|
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/modules/ts/misc/run.py"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#-----------------------------------
|
#-----------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user