Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.9
-
None
-
-
3c2a3bb0d (dev), 2b7e71586 (6.8), a4858ca09 (6.7)
Description
When building qttools with the qlitehtml checked out, the qlitehtml is built in a subdirectory with the name value-NOTFOUND:
$ fd value-NOTFOUND -t directory . ./src/assistant/qlitehtml/src/value-NOTFOUND/
origin of that directory name is
function(qt_handle_multi_config_output_dirs target) qt_get_cmake_configurations(possible_configs) qt_clone_property_for_configs(${target} LIBRARY_OUTPUT_DIRECTORY "${possible_configs}") qt_clone_property_for_configs(${target} RUNTIME_OUTPUT_DIRECTORY "${possible_configs}") qt_clone_property_for_configs(${target} ARCHIVE_OUTPUT_DIRECTORY "${possible_configs}") endfunction()
which is called in src/assistant/CMakeLists.txt
qt_handle_multi_config_output_dirs(qlitehtml) set_target_properties(qlitehtml PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${QT_BUILD_DIR}/${INSTALL_BINDIR}" LIBRARY_OUTPUT_DIRECTORY "${QT_BUILD_DIR}/${INSTALL_LIBDIR}" ARCHIVE_OUTPUT_DIRECTORY "${QT_BUILD_DIR}/${INSTALL_LIBDIR}")
The qt_handle_multi_config_output_dirs call should come after setting the target properties to have the desired effect.