Skip to content

Commit

Permalink
fix(build): ignore glad and glm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
luishfonseca committed Sep 29, 2023
1 parent d107992 commit fb26b56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ if (WITH_OPENGL)
set(GLAD_SOUURCES_DIR "lib/glad")
add_subdirectory("${GLAD_SOUURCES_DIR}/cmake" glad_cmake)
glad_add_library(glad REPRODUCIBLE API gl:core=3.3)
target_link_libraries(cubos-core PUBLIC glad)
target_link_libraries(cubos-core PRIVATE glad)
target_compile_definitions(cubos-core PRIVATE WITH_OPENGL)
endif ()

Expand Down Expand Up @@ -159,8 +159,8 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

target_compile_definitions(cubos-core PUBLIC GLM_FORCE_SILENT_WARNINGS) # Needed for compilation to succeed on MSVC
target_link_libraries(cubos-core PUBLIC glm::glm spdlog nlohmann_json::nlohmann_json fmt::fmt ${CMAKE_DL_LIBS})
target_link_libraries(cubos-core PRIVATE Threads::Threads)
target_link_libraries(cubos-core PUBLIC spdlog nlohmann_json::nlohmann_json fmt::fmt ${CMAKE_DL_LIBS})
target_link_libraries(cubos-core PRIVATE glm::glm Threads::Threads)

# Add core tests

Expand Down

0 comments on commit fb26b56

Please sign in to comment.