[opensuse-packaging] cmake finds packages and tells they are not found?

Hi, I need help from a cmake expert. I'm trying to update ethereum-cpp package to the latest version. It uses Hunter (https://hunter.sh/) to download and compile dependencies. Of course, to make it compile on build service I had to disable Hunter (easy, just add -DHUNTER_ENABLED=OFF to cmake) and adjust all find_package calls, to use system provided libraries. And now I hit the wall. Some of required libraries (ethash, Snappy and yaml-cpp) are built with cmake themselves and are providing cmake files in /usr/lib64/cmake. As far as I understood cmake manual, they should be used with "find_package(<name> CONFIG REQUIRED)". Cmake does not complain about any missing libraries and in log linked below it shows that it uses those provided files. But files generated in build directory contain "<name>-NOTFOUND" values and build fails. Here you can find my current work: https://build.opensuse.org/package/show/home:etamPL:branches:network:cryptoc... Here you can find log from running cmake with "--trace --debug-output": http://susepaste.org/77797237 -- Adam Mizerski

W dniu 28.01.2019 o 22:09, Adam Mizerski pisze:
I found the source of the problem. I had to remove those lines from CMakeLists.txt: set(CMAKE_MAP_IMPORTED_CONFIG_DEBUG Release) set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release) -- Adam Mizerski

W dniu 28.01.2019 o 22:09, Adam Mizerski pisze:
I found the source of the problem. I had to remove those lines from CMakeLists.txt: set(CMAKE_MAP_IMPORTED_CONFIG_DEBUG Release) set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release) -- Adam Mizerski
participants (1)
-
Adam Mizerski