From c2daca5d277528ac3acd3b7385395f3894cf389c Mon Sep 17 00:00:00 2001 From: Guillaume Racicot Date: Mon, 10 Oct 2022 13:23:24 -0300 Subject: [PATCH 1/2] Added target alias glfw3::glfw3 --- CMake/glfw3Config.cmake.in | 1 + 1 file changed, 1 insertion(+) diff --git a/CMake/glfw3Config.cmake.in b/CMake/glfw3Config.cmake.in index 4a13a88b..94fc7df1 100644 --- a/CMake/glfw3Config.cmake.in +++ b/CMake/glfw3Config.cmake.in @@ -1,3 +1,4 @@ include(CMakeFindDependencyMacro) find_dependency(Threads) include("${CMAKE_CURRENT_LIST_DIR}/glfw3Targets.cmake") +add_library(glfw3::glfw3 ALIAS glfw) From af862e56f5b30b2dab040d1032403acccc054733 Mon Sep 17 00:00:00 2001 From: Guillaume Racicot Date: Mon, 10 Oct 2022 13:29:11 -0300 Subject: [PATCH 2/2] Added alias for add_subdirectory and FetchContent --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 01f191c9..cef9e366 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -7,6 +7,8 @@ add_library(glfw ${GLFW_LIBRARY_TYPE} egl_context.c osmesa_context.c null_platform.h null_joystick.h null_init.c null_monitor.c null_window.c null_joystick.c) +add_library(glfw3::glfw3 ALIAS glfw) + # The time, thread and module code is shared between all backends on a given OS, # including the null backend, which still needs those bits to be functional if (APPLE)