mingw windres [target_include_directories] invalid take path with space
Hello, i use CMake 3.17.1 and have issue with [target_include_directories]
i try compile freetype2 and set ZLIB_INCLUDE_DIR with space
example:
set(ZLIB_INCLUDE_DIR "D:/Mengine/cmake/Depends_MinGW/../../dependencies/configuration/MinGW Makefiles/Debug/zlib" CACHE STRING "ZLIB_INCLUDE_DIR" FORCE)
'freetype' have CMakeLists.txt next code line:
target_include_directories(freetype PRIVATE ${ZLIB_INCLUDE_DIRS})
if i compile this - i get "error: Makefiles\Debug\zlib: No such file or directory"
i try force change ${ZLIB_INCLUDE_DIRS}
in freetype CMakeLists.txt on my path. And get the some thing error.
target_include_directories(freetype PRIVATE "D:/Mengine/cmake/Depends_MinGW/../../dependencies/configuration/MinGW Makefiles/Debug/zlib")
CMAKE VERSION: 3.17.1
CMAKE_GENERATOR: MinGW Makefiles
CMAKE_CXX_COMPILER_ID: Clang
CMAKE_CXX_COMPILER: C:/msys64/mingw32/bin/clang++.exe
CMAKE_C_COMPILER_ID: Clang
CMAKE_C_COMPILER: C:/msys64/mingw32/bin/clang.exe
CMAKE_MAKE_PROGRAM: C:/msys64/mingw32/bin/mingw32-make.exe
CMAKE_SYSTEM_NAME: Windows
CMAKE_SYSTEM_VERSION: 10.0.17763
CMAKE_SYSTEM_PROCESSOR: AMD64
CMAKE_BUILD_TYPE: Debug
if i compile other toolschaine MSVC, Android and iOS - result successful!
Thanks!
Edited by Brad King