Browse Source

fix

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/2994/head
crueter 4 months ago
parent
commit
a8eb4f0954
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 9
      CMakeModules/FixMsysPaths.cmake

9
CMakeModules/FixMsysPaths.cmake

@ -4,10 +4,17 @@
function(FixMsysPath target)
get_target_property(include_dir ${target} INTERFACE_INCLUDE_DIRECTORIES)
if (include_dir MATCHES "^C:")
if (NOT (include_dir MATCHES "^/"))
return()
endif()
set(root_default $ENV{MSYS2_LOCATION})
if (root_default STREQUAL "")
set(root_default "C:/msys64")
endif()
set(MSYS_ROOT_PATH ${root_default} CACHE STRING "Location of the MSYS2 root")
set(include_dir "C:/msys64${include_dir}")
set_target_properties(${target} PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${include_dir})

Loading…
Cancel
Save