Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

CMake files do not automatically download the libraries when ran

Aperta
#16 26 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cmake, cpp
Ambito
build-system

Direzione di ricerca

Start by reading FindSol.cmake and FindRaylib.cmake, then reproduce the dependency lookup on OS X 10.15.1 with the existing find_package and FetchContent flow. Check whether the sol2 and raylib libraries are detected or downloaded as intended, and confirm that the project completes its build without requiring the invalid VERBOSE flag.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi,

The files FindSol.cmake and FindRaylib.cmake do not automatically download the libraries on OS X 10.15.1.

If you change the flag QUIET to VERBOSE it fails but then carries on to download and building steps:


find_package(sol 3.0 VERBOSE)
if (NOT sol_FOUND)
  include(FetchContent)
  FetchContent_Declare(
    sol
    GIT_REPOSITORY https://github.com/ThePhD/sol2.git
    GIT_TAG 6d4a5d3ef66d605c54093edb673c14e373969a08
  )
  FetchContent_GetProperties(sol)
  if (NOT sol_POPULATED) # Have we downloaded sol2 yet?
    set(FETCHCONTENT_QUIET NO)
    FetchContent_Populate(sol)
    add_subdirectory(${sol_SOURCE_DIR} ${sol_BINARY_DIR})
    set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${sol_SOURCE_DIR}/cmake" "${sol_SOURCE_DIR}/cmake/Modules")
  endif()
endif()

The verbose flag is not valid so it carries on, i installed raylib view brew but it didn't find the libraries in the first place.

Lingua principale
C++
Stelle
120
Fork
22
Merge medio
50m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RobLoach/raylib-lua-sol

Tutte le issue di RobLoach/raylib-lua-sol

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.