Commit b47b6e02fd7f427bbd65726c226759d8a1b18b63

Jon Daniel 2023-01-14T23:49:06

fix prefix path not resolving symlinks

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/sdl2-config.cmake.in b/sdl2-config.cmake.in
index 5d6cf43..ca73a97 100644
--- a/sdl2-config.cmake.in
+++ b/sdl2-config.cmake.in
@@ -14,6 +14,7 @@ macro(set_and_check _var _file)
     endif()
 endmacro()
 
+get_filename_component(CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_DIR} REALPATH)
 get_filename_component(prefix "${CMAKE_CURRENT_LIST_DIR}/@cmake_prefix_relpath@" ABSOLUTE)
 
 set(exec_prefix "@exec_prefix@")