Skip to content

Commit

Permalink
cmake: adds missing CMake vulkan example and removes extra white spac…
Browse files Browse the repository at this point in the history
…es (#494)
  • Loading branch information
ltsdw authored Oct 17, 2024
1 parent 73db193 commit f492295
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmake/GladConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
# glad_add_library(glad_gl_compat_10 MODULE API gl:compatibility=1.0 EXTENSIONS GL_EXT_COMPRESSION_s3tc)
# ```
# - create a static glad library with the vulkan=1.1
# ```
# glad_add_library(glad_vulkan_11 STATIC API vulkan=1.1)
# ```

# Extract specification, profile and version from a string
# examples:
Expand Down Expand Up @@ -179,9 +182,9 @@ function(glad_add_library TARGET)
message(STATUS "Glad Library \'${TARGET}\'")

find_package(Python COMPONENTS Interpreter REQUIRED)

cmake_parse_arguments(GG "MERGE;QUIET;REPRODUCIBLE;STATIC;SHARED;MODULE;INTERFACE;EXCLUDE_FROM_ALL" "LOCATION;LANGUAGE" "API;EXTENSIONS" ${ARGN})

if(NOT GG_LOCATION)
set(GG_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/gladsources/${TARGET}")
endif()
Expand Down Expand Up @@ -281,7 +284,7 @@ function(glad_add_library TARGET)
PUBLIC
${CMAKE_DL_LIBS}
)

if(GG_SHARED)
target_compile_definitions("${TARGET}" PUBLIC GLAD_API_CALL_EXPORT)
set_target_properties("${TARGET}"
Expand Down

0 comments on commit f492295

Please sign in to comment.