Browse Source

fix prefix path not resolving symlinks

Jon Daniel 2 years ago
parent
commit
b47b6e02fd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      sdl2-config.cmake.in

+ 1 - 0
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@")