Skip to content

Commit

Permalink
Allow to override Qt plugin directory
Browse files Browse the repository at this point in the history
The qtpaths-based deduction code doesn't really work for all systems, notably NixOS.

Fixes trialuser02#9
  • Loading branch information
ilya-fedin committed Oct 21, 2024
1 parent 7134427 commit ff9ecf8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ if(Qt6LinguistTools_FOUND)
endif()
endif()

#execute_process(COMMAND ${QT_QTPATHS_EXECUTABLE} -query QT_INSTALL_PLUGINS OUTPUT_VARIABLE PLUGINDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${QT_QTPATHS_EXECUTABLE} --plugin-dir OUTPUT_VARIABLE PLUGINDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
if(NOT PLUGINDIR)
#execute_process(COMMAND ${QT_QTPATHS_EXECUTABLE} -query QT_INSTALL_PLUGINS OUTPUT_VARIABLE PLUGINDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${QT_QTPATHS_EXECUTABLE} --plugin-dir OUTPUT_VARIABLE PLUGINDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()

if(PLUGINDIR)
message(STATUS "Plugin path: ${PLUGINDIR}")
Expand Down

0 comments on commit ff9ecf8

Please sign in to comment.