CMake: Use provided OUTPUT_DIRECTORY for manual tests and benchmarks
If an OUTPUT_DIRECTORY option is provided, it should be used instead of discarding it. Change-Id: Ie53b56616f16589f7c05ff9378d7ba2e2ba34726 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
parent
5b3a86a87b
commit
9da90fab67
@ -3464,9 +3464,13 @@ function(qt_add_benchmark target)
|
||||
${ARGV}
|
||||
)
|
||||
|
||||
if(NOT arg_OUTPUT_DIRECTORY)
|
||||
set(arg_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
endif()
|
||||
|
||||
qt_add_executable(${target}
|
||||
NO_INSTALL # we don't install benchmarks
|
||||
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" # avoid polluting bin directory
|
||||
OUTPUT_DIRECTORY "${arg_OUTPUT_DIRECTORY}" # avoid polluting bin directory
|
||||
${exec_args}
|
||||
)
|
||||
|
||||
@ -3497,9 +3501,13 @@ function(qt_add_manual_test target)
|
||||
${ARGV}
|
||||
)
|
||||
|
||||
if(NOT arg_OUTPUT_DIRECTORY)
|
||||
set(arg_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
endif()
|
||||
|
||||
qt_add_executable(${target}
|
||||
NO_INSTALL # we don't install benchmarks
|
||||
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" # avoid polluting bin directory
|
||||
OUTPUT_DIRECTORY "${arg_OUTPUT_DIRECTORY}" # avoid polluting bin directory
|
||||
${exec_args}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user