Update CMakeLists.txt for ninja
This commit is contained in:
parent
2209e5b0ca
commit
c2c37b18a0
14
src/external/glfw/src/CMakeLists.txt
vendored
14
src/external/glfw/src/CMakeLists.txt
vendored
|
|
@ -20,14 +20,14 @@ else()
|
||||||
posix_time.c posix_thread.c)
|
posix_time.c posix_thread.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_target(update_mappings
|
#add_custom_target(update_mappings
|
||||||
COMMAND "${CMAKE_COMMAND}" -P "${GLFW_SOURCE_DIR}/CMake/GenerateMappings.cmake" mappings.h.in mappings.h
|
# COMMAND "${CMAKE_COMMAND}" -P "${GLFW_SOURCE_DIR}/CMake/GenerateMappings.cmake" mappings.h.in mappings.h
|
||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
# WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
COMMENT "Updating gamepad mappings from upstream repository"
|
# COMMENT "Updating gamepad mappings from upstream repository"
|
||||||
SOURCES mappings.h.in "${GLFW_SOURCE_DIR}/CMake/GenerateMappings.cmake"
|
# SOURCES mappings.h.in "${GLFW_SOURCE_DIR}/CMake/GenerateMappings.cmake"
|
||||||
VERBATIM)
|
# VERBATIM)
|
||||||
|
|
||||||
set_target_properties(update_mappings PROPERTIES FOLDER "GLFW3")
|
#set_target_properties(update_mappings PROPERTIES FOLDER "GLFW3")
|
||||||
|
|
||||||
if (GLFW_BUILD_COCOA)
|
if (GLFW_BUILD_COCOA)
|
||||||
target_compile_definitions(glfw PRIVATE _GLFW_COCOA)
|
target_compile_definitions(glfw PRIVATE _GLFW_COCOA)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user