-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libui/0.4.1: ERROR: Missing binary #1378
Comments
Related: running with Folded it all into one cmake_minimum_required(VERSION 3.0)
cmake_policy(SET CMP0048 NEW)
cmake_policy(SET CMP0054 NEW)
project(pp VERSION 0.0.0 LANGUAGES C)
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/v0.16.1/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake"
EXPECTED_HASH SHA256=396e16d0f5eabdc6a14afddbcfff62a54a7ee75c6da23f32f7a31bc85db23484
TLS_VERIFY ON)
endif()
include(${CMAKE_BINARY_DIR}/conan.cmake)
conan_cmake_configure(REQUIRES libui/0.4.1@bincrafters/stable
GENERATORS cmake_find_package)
conan_cmake_autodetect(settings)
conan_add_remote(NAME bincrafters
INDEX 1
URL https://api.bintray.com/conan/bincrafters/public-conan
VERIFY_SSL True)
conan_cmake_install(PATH_OR_REFERENCE .
BUILD missing
REMOTE bincrafters
SETTINGS ${settings})
file(DOWNLOAD "https://raw.githubusercontent.com/andlabs/libui/d788d86/examples/drawtext/main.c"
"${CMAKE_BINARY_DIR}/src/main.c"
EXPECTED_HASH SHA256=cdc67294145e638d6b6444068829ded491c7481660e5d344bd6353be78d697cb
TLS_VERIFY ON)
set(src "${CMAKE_BINARY_DIR}/src/main.c")
file(READ ${src} main_source)
string(REPLACE "#include \"../../ui.h\"" "#include <ui.h>" main_source ${main_source})
file(WRITE ${src} ${main_source})
find_package(ui CONFIG REQUIRED)
add_executable(${PROJECT_NAME} ${src})
target_link_libraries(${PROJECT_NAME} PRIVATE ui)
|
you need to use the cmake_find_package_multi instead of cmake_find_package when invoking |
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
conanfile.txt
[requires] libui/0.4.1@bincrafters/stable
Logs (Include/Attach if Applicable)
I mean is this related to the bintray being turned off? - Or am I misusing it?
The text was updated successfully, but these errors were encountered: