Skip to content

Commit

Permalink
cmake: remove COMMAND from add_custom_target + mark_as_advanced
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr authored and Dav1dde committed Aug 19, 2018
1 parent 68d46f1 commit 8c08bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ find_package(PythonInterp REQUIRED)

set(GLAD_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}" CACHE STRING "Directory containing glad generator CMakeLists.txt")
set(GLAD_SOURCES_DIR "${GLAD_CMAKE_DIR}/../" CACHE STRING "Directory containing glad sources (python modules), used as working directory")
mark_as_advanced(GLAD_CMAKE_DIR)

# Extract specification, profile and version from a string
# examples:
Expand Down Expand Up @@ -210,7 +211,6 @@ function(glad_add_library TARGET)
add_custom_target("regenerate_${TARGET}"
COMMAND "${CMAKE_COMMAND}" -E remove_directory "${GLAD_DIR}"
COMMAND "${PYTHON_EXECUTABLE}" -m glad ${GLAD_ARGS}
COMMAND "${CMAKE_COMMAND}" "-DPATH=${GLAD_ARGS_PATH}" "-DTEXT=\"${GLAD_ARGS_UNIVERSAL}\"" -P "${GLAD_CMAKE_DIR}/WriteFile.cmake"
${GLAD_EXTRA_COMMANDS}
WORKING_DIRECTORY "${GLAD_SOURCES_DIR}"
COMMENT "Regenerating glad source files for ${TARGET}..."
Expand Down

0 comments on commit 8c08bb4

Please sign in to comment.