如何使用CMake在路径中指定空格? [英] How do I specify a path with white space in it with CMake?
本文介绍了如何使用CMake在路径中指定空格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
考虑:
include_directories("D:/FMOD SoundSystem/FMOD Programmers API Win32/api")
在CMake中处理上述路径的合适方法是什么?
What's the decent way to deal with a path like the above in CMake?
推荐答案
您必须使用 \
转义空格。
D:/FMOD\ SoundSystem/FMOD\ Programmers\ API\ Win32/api
这篇关于如何使用CMake在路径中指定空格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文