comparison CMakeLists.txt @ 345:d085c05247bd

build: fix windows build
author Paper <paper@paper.us.eu.org>
date Thu, 20 Jun 2024 07:39:01 -0400
parents 1faa72660932
children e65b89bcc528
comparison
equal deleted inserted replaced
344:676b9967d8c6 345:d085c05247bd
29 find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core) 29 find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
30 endif() 30 endif()
31 31
32 find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools) 32 find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools)
33 33
34 find_package(CURL REQUIRED) 34 # find_package(CURL) fails sometimes
35 find_package(PkgConfig REQUIRED)
36 pkg_check_modules(CURL REQUIRED curl)
35 37
36 set(LIBRARIES 38 set(LIBRARIES
37 ${CURL_LIBRARIES} 39 ${CURL_LIBRARIES}
38 ${Qt${QT_VERSION_MAJOR}Widgets_LIBRARIES} 40 ${Qt${QT_VERSION_MAJOR}Widgets_LIBRARIES}
39 anitomy 41 anitomy