Skip to content

Commit

Permalink
fix qt5 path for brew
Browse files Browse the repository at this point in the history
  • Loading branch information
bas524 committed Oct 7, 2024
1 parent 4ce5c51 commit 338d0ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Threads REQUIRED)

set(QtVerPath qt5)
set(QtVerPath qt@5)
if (FORCE_QT6)
set(QtVer Qt6)
set(QtVerPath qt6)
set(QtVerPath qt@6)
find_package(${QtVer} COMPONENTS Widgets REQUIRED)
else()
set(QtVer Qt5)
find_package(${QtVer} COMPONENTS Widgets QUIET)
if (NOT Qt5_FOUND)
set(QtVer Qt6)
set(QtVerPath qt6)
set(QtVerPath qt@6)
find_package(${QtVer} COMPONENTS Widgets REQUIRED)
endif ()
endif()
Expand Down

0 comments on commit 338d0ee

Please sign in to comment.