Skip to content

Commit

Permalink
Use IMPORTED targets in Emscripten find modules
Browse files Browse the repository at this point in the history
  • Loading branch information
hobyst committed Sep 3, 2023
1 parent 12467e1 commit b61d53b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMake/Modules/Emscripten/FindFreetype.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ endif()

# Emscripten includes Freetype support as part of it's SDK, meaning there's no need to find it
set(Freetype_FOUND TRUE)
add_library(freetype INTERFACE)
add_library(freetype INTERFACE IMPORTED)
add_library(Freetype::Freetype ALIAS freetype)

# Set found Freetype version
Expand Down
2 changes: 1 addition & 1 deletion CMake/Modules/Emscripten/FindOpenGL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ endif()

# Emscripten includes OpenGL ES support as part of it's SDK, meaning there's no need to find it
set(OpenGL_FOUND TRUE)
add_library(opengl INTERFACE)
add_library(opengl INTERFACE IMPORTED)
add_library(OpenGL::GL ALIAS opengl)

# Set found OpenGL version
Expand Down
2 changes: 1 addition & 1 deletion CMake/Modules/Emscripten/FindSDL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ endif()

# Emscripten includes SDL support as part of it's SDK, meaning there's no need to find it
set(SDL_FOUND TRUE)
add_library(sdl INTERFACE)
add_library(sdl INTERFACE IMPORTED)
add_library(SDL::SDL ALIAS sdl)

# Set found SDL version based on latest Emscripten SDK at the time of writing this file
Expand Down
2 changes: 1 addition & 1 deletion CMake/Modules/Emscripten/FindSDL_image.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ message(WARNING

# Emscripten includes SDL support as part of it's SDK, meaning there's no need to find it
set(SDL_image_FOUND TRUE)
add_library(sdl_image INTERFACE)
add_library(sdl_image INTERFACE IMPORTED)
add_library(SDL::Image ALIAS sdl_image)

# Set found SDL_image version based on latest Emscripten SDK at the time of writing this file
Expand Down
2 changes: 1 addition & 1 deletion CMake/Modules/Emscripten/Findglfw3.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ endif()

# Emscripten includes GLFW support as part of it's SDK, meaning there's no need to find it
set(glfw3_FOUND TRUE)
add_library(glfw INTERFACE)
add_library(glfw INTERFACE IMPORTED)

# Set found GLFW version based on latest Emscripten SDK at the time of writing this file
# Version set based on latest Emscripten SDK at the time of writing this file
Expand Down

0 comments on commit b61d53b

Please sign in to comment.