Skip to content

Commit ecfb296

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents fd85ca4 + a921e2b commit ecfb296

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

omodsim/CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ if (NOT Qt6_FOUND)
1717
find_package(Qt5 COMPONENTS Core Gui Widgets Network PrintSupport SerialBus SerialPort Qml Help LinguistTools QUIET)
1818
endif()
1919

20+
if(Qt6_FOUND)
21+
get_target_property(QT_BINARY_DIR Qt6::qmake IMPORTED_LOCATION)
22+
get_filename_component(QT_BINARY_DIR "${QT_BINARY_DIR}" DIRECTORY)
23+
get_filename_component(QT_LIBEXEC_DIR "${QT_BINARY_DIR}/../libexec" REALPATH)
24+
else()
25+
get_target_property(QT_BINARY_DIR Qt5::qmake IMPORTED_LOCATION)
26+
get_filename_component(QT_BINARY_DIR "${QT_BINARY_DIR}" DIRECTORY)
27+
set(QT_LIBEXEC_DIR "${QT_BINARY_DIR}")
28+
endif()
29+
2030
# Define target
2131
add_executable(omodsim
2232
ansiutils.h
@@ -232,7 +242,7 @@ set(JSHELP_QHC "${CMAKE_BINARY_DIR}/docs/jshelp.qhc")
232242
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/docs)
233243

234244
find_program(QHELP_GENERATOR_EXECUTABLE qhelpgenerator
235-
HINTS "${QT_BIN_DIR}"
245+
HINTS "${QT_BINARY_DIR}" "${QT_LIBEXEC_DIR}"
236246
NO_DEFAULT_PATH)
237247
if(NOT QHELP_GENERATOR_EXECUTABLE)
238248
find_program(QHELP_GENERATOR_EXECUTABLE qhelpgenerator)

0 commit comments

Comments
 (0)