arrayfire / arrayfire/arrayfire-ml

Possible anachronism in CMake `target_include_directories`

Offen
#46 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
105
Forks
22
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

When trying to compile, [line 29 of the CMake file](https://github.com/arrayfire/arrayfire-ml/blob/master/CMakeLists.txt#L29) was giving me trouble. Changing the included item from `ArrayFire::af` to `af` solved the issue. I'm using CMake 3.10.2

See also:
1. https://cmake.org/cmake/help/latest/command/target_include_directories.html
2. https://gitlab.kitware.com/cmake/cmake/issues/15689

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start at line 29 of CMakeLists.txt and reproduce the compile problem with CMake 3.10.2. Compare the ArrayFire::af and af forms using the linked CMake documentation and issue 15689. Done means the project compiles without requiring the reported workaround.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cmake, cpp
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
52/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.