FindwxWidgets: Convert include and library paths to cmake-style

This fixes DBG_MSG errors when a path uses \ instead of /.
This commit is contained in:
Maarten Bent
2023-10-08 18:28:56 +02:00
committed by Brad King
parent d76242ed9f
commit f8831a0c9e

View File

@@ -986,6 +986,9 @@ if(wxWidgets_FOUND)
wx_extract_version()
endif()
file(TO_CMAKE_PATH "${wxWidgets_INCLUDE_DIRS}" wxWidgets_INCLUDE_DIRS)
file(TO_CMAKE_PATH "${wxWidgets_LIBRARY_DIRS}" wxWidgets_LIBRARY_DIRS)
# Debug output:
DBG_MSG("wxWidgets_FOUND : ${wxWidgets_FOUND}")
DBG_MSG("wxWidgets_INCLUDE_DIRS : ${wxWidgets_INCLUDE_DIRS}")