1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CMake: Use forward-slashes in paths separators to avoid confusing MSVC in pragma comments

This commit is contained in:
reuk 2022-07-06 13:23:58 +01:00
parent 853dac4f3f
commit 0072c567aa
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -83,8 +83,10 @@ endfunction()
macro(_juce_make_absolute path)
if(NOT IS_ABSOLUTE "${${path}}")
get_filename_component("${path}" "${${path}}" ABSOLUTE BASE_DIR "${CMAKE_CURRENT_LIST_DIR}")
get_filename_component(${path} "${${path}}" ABSOLUTE BASE_DIR "${CMAKE_CURRENT_LIST_DIR}")
endif()
string(REGEX REPLACE "\\\\" "/" ${path} "${${path}}")
endmacro()
macro(_juce_make_absolute_and_check path)