PoshSylvester / cvblob

Automatically exported from code.google.com/p/cvblob
GNU Lesser General Public License v3.0
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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