Commit 883c8c5b authored by Tuomas Nurmi's avatar Tuomas Nurmi Committed by Albert Astals Cid
Browse files

Fix Qt version detection logic.

Avogadro disabled for Qt6 in commit c5adadec
- however, the logic in this condition is inverse from intended, as observable
on line 63, preventing Avogadro builds on Qt 5.
parent 7ef55342
Pipeline #256651 passed with stage
in 1 minute and 46 seconds
......@@ -41,7 +41,7 @@ find_package(OpenBabel3 3.1)
if(NOT ${OpenBabel3_FOUND})
find_package(OpenBabel2)
endif()
if (QT_MAJOR_VERSION STREQUAL "6")
if (QT_MAJOR_VERSION STREQUAL "5")
find_package(AvogadroLibs)
endif()
find_package(Eigen3 CONFIG)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment