Not sure which change is responsible (I didn't spot out in release notes)
but the newer version needs pointing at /usr/local/lib more often than the
previous one, it will probably work if you either set LDFLAGS in the
environment or use -DCMAKE_EXE_LINKER_FLAGS on the command line.
--
Sent from a phone, apologies for poor formatting.
On 3 June 2022 17:08:09 Caspar Schutijser <cas...@schutijser.com> wrote:
Hi,
On a snapshot of two weeks old, the below command sequence (to compile
trojita outside the ports tree) succeeds successfully. However, on a
machine updated to today's snapshot, this fails with the error message
shown below. I assume it has something to do with the update to
CMake 3.23 (and perhaps specifically with the
"Fix build with CMake 3.23" commit on 2022-05-28) but I don't know for
sure. Do you know what's going on?
Thanks,
Caspar
$ cd /tmp
$ git clone https://invent.kde.org/pim/trojita
$ cd trojita
$ echo "set(CMAKE_PREFIX_PATH /usr/local/lib/qt5/cmake)" >new
$ cat CMakeLists.txt >>new
$ mv new CMakeLists.txt
$ mkdir _build
$ cd _build
$ cmake ..
[snip]
-- Configuring done
CMake Error at /usr/local/lib/qt5/cmake/Qt5WebKit/WebKitTargets.cmake:67
(set_target_properties):
The link interface of target "Qt5::WebCore" contains:
Qt5::Sensors
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
/usr/local/lib/qt5/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:87 (include)
/usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
/usr/local/lib/qt5/cmake/Qt5WebKitWidgets/Qt5WebKitWidgetsConfig.cmake:83
(find_dependency)
CMakeLists.txt:52 (find_package)
CMake Error at /usr/local/lib/qt5/cmake/Qt5WebKit/WebKitTargets.cmake:83
(set_target_properties):
The link interface of target "Qt5::WebKit2" contains:
Qt5::Positioning
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
/usr/local/lib/qt5/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:87 (include)
/usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
/usr/local/lib/qt5/cmake/Qt5WebKitWidgets/Qt5WebKitWidgetsConfig.cmake:83
(find_dependency)
CMakeLists.txt:52 (find_package)
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.