Skip to content

Commit

Permalink
Qt6 cmake fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Mar 16, 2024
1 parent 99d930b commit 8fdf688
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cmake/modules/FindQca.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ if (Qca_INCLUDE_DIR AND Qca_LIBRARY)
endif()

set(EXTRA_PATH_SUFFIXES
qt5/Qca-qt5/QtCrypto
Qca-qt5/QtCrypto
qt5/Qca-qt${QT_DEFAULT_MAJOR_VERSION}/QtCrypto
Qca-qt${QT_DEFAULT_MAJOR_VERSION}/QtCrypto
qt5/QtCrypto
qt/Qca-qt5/QtCrypto
lib/qca-qt5.framework/Versions/2/Headers
qt/Qca-qt${QT_DEFAULT_MAJOR_VERSION}/QtCrypto
lib/qca-qt${QT_DEFAULT_MAJOR_VERSION}.framework/Versions/2/Headers
)

find_path(
Expand All @@ -52,7 +52,7 @@ find_path(

find_library(
Qca_LIBRARY
NAMES qca-qt5${D}
NAMES qca-qt${QT_DEFAULT_MAJOR_VERSION}${D}
HINTS
${QCA_DIR}/lib
${QCA_DIR}/bin
Expand Down
4 changes: 2 additions & 2 deletions cmake/modules/IrisQCA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ if(IRIS_BUNDLED_QCA)
else()
list(APPEND Qca_INCLUDE_DIR ${QCA_SOURCE_DIR}/include/QtCrypto)
endif()
set(Qca_CORE_LIB ${QCA_BUILD_DIR}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}qca-qt5${D}${CMAKE_STATIC_LIBRARY_SUFFIX})
set(Qca_OSSL_LIB ${QCA_BUILD_DIR}/lib/qca-qt5/crypto/${CMAKE_STATIC_LIBRARY_PREFIX}qca-ossl${D}${CMAKE_STATIC_LIBRARY_SUFFIX})
set(Qca_CORE_LIB ${QCA_BUILD_DIR}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}qca-qt${QT_DEFAULT_MAJOR_VERSION}${D}${CMAKE_STATIC_LIBRARY_SUFFIX})
set(Qca_OSSL_LIB ${QCA_BUILD_DIR}/lib/qca-qt${QT_DEFAULT_MAJOR_VERSION}/crypto/${CMAKE_STATIC_LIBRARY_PREFIX}qca-ossl${D}${CMAKE_STATIC_LIBRARY_SUFFIX})
set(Qca_LIBRARY ${Qca_OSSL_LIB} ${Qca_CORE_LIB})
if(APPLE)
set(COREFOUNDATION_LIBRARY "-framework CoreFoundation")
Expand Down

0 comments on commit 8fdf688

Please sign in to comment.