Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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 samcorbe...@gmail.com on 1 May 2013 at 1:18

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions