How do I specify a path with white space in it with CMake?

前端 未结 2 610
别跟我提以往
别跟我提以往 2021-01-17 08:05

Consider:

include_directories(\"D:/FMOD SoundSystem/FMOD Programmers API Win32/api\")

What\'s the decent way to deal with a path like the a

相关标签:
2条回答
  • 2021-01-17 08:31
    include_directories("D:/FMOD\ SoundSystem/FMOD\ Programmers\ API\ Win32/api")
    
    0 讨论(0)
  • 2021-01-17 08:35

    You have to escape the spaces with a \.

    D:/FMOD\ SoundSystem/FMOD\ Programmers\ API\ Win32/api
    
    0 讨论(0)
提交回复
热议问题