Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake include path misinterpreted if it has a space in it #38

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

I'm compiling cvblob using CMake/VS10 on Windows 7 64-bit, with the root 
directory at C:/Program Files/cvblob

It compiles fine, but the generated cvBlobConfig.cmake contains (what I believe 
to be) a subtle error. The lines:

# ======================================================
# Include directories to add to the user project:
# ======================================================
INCLUDE_DIRECTORIES(C:/Program Files/cvBlob/include/)    <----- THIS LINE
# Provide the include directories to the caller
SET(cvBlob_INCLUDE_DIRS C:/Program Files/cvBlob/include/)<----- THIS LINE

identify the include path without quote makes, which gets interpreted by CMake 
as two directories, "C:/Program" and "Files/cvBlob/include". Obviously, this 
means the library's include files cannot be found when compiling my project.

Original issue reported on code.google.com by [email protected] on 1 May 2013 at 1:18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant