SpartanJ / SOIL2

SOIL2 is a tiny C library used primarily for uploading textures into OpenGL.
MIT No Attribution
370 stars 75 forks source link

Warning during CMake Configuration #67

Closed illegitimate-egg closed 1 month ago

illegitimate-egg commented 1 month ago

During the building for SOIL2 a warning is given

CMake Warning (dev) at include/SOIL2/CMakeLists.txt:67 (install):
  Target soil2 has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
This warning is for project developers.  Use -Wno-dev to suppress it.

From what I can tell, this is a problem with the library and not my CMakeLists.txt file, but incase it is, a modified version is available here

cmake_minimum_required(VERSION 3.11)
project(PROJECT C CXX)

set(SOIL2_BUILD_TESTS OFF) # Don't build SOIL2 Tests

add_subdirectory(include/SOIL2)

add_executable(PROJECT main.cpp)
target_link_libraries(PROJECT soil2)