MantisBT - CMake
View Issue Details
0014281CMakeCMakepublic2013-07-08 19:332013-12-02 08:51
nomorgan 
 
normalblockalways
closedno change required 
Windows 7Windows 7
CMake 2.8.11.1 
 
0014281: INCLUDE_DIRECTORIES problem with duplicate path and path with spaces
this command used with a NMake Generator:

INCLUDE_DIRECTORIES("c:/Program Files/lib/2" "c:/Program Files/lib/1")

result in this nmake command line

/I"c:/Program Files/lib/2" Files/lib/1"

instead of

/I"c:/Program Files/lib/2" /I"c:/Program Files/lib/1"
I Have tried with
INCLUDE_DIRECTORIES("c:/Program Files/lib/2" "c:/Program Files/lib/1")
INCLUDE_DIRECTORIES(c:/Program\ Files/lib/2 c:/Program\ Files/lib/1)



No tags attached.
Issue History
2013-07-08 19:33nomorganNew Issue
2013-07-08 19:40nomorganNote Added: 0033514
2013-07-09 09:40Brad KingNote Added: 0033518
2013-07-11 14:53nomorganNote Added: 0033527
2013-07-15 08:21Brad KingStatusnew => resolved
2013-07-15 08:21Brad KingResolutionopen => no change required
2013-12-02 08:51Robert MaynardNote Added: 0034643
2013-12-02 08:51Robert MaynardStatusresolved => closed

Notes
(0033514)
nomorgan   
2013-07-08 19:40   
Bug is in CMake v2.8.11.1 and v2.8.11.2

maybe in older version too
(0033518)
Brad King   
2013-07-09 09:40   
I cannot reproduce this:

>type ..\CMakeLists.txt
cmake_minimum_required(VERSION 2.8.11)
project(FOO C)
include_directories("c:/Program Files/lib/2" "c:/Program Files/lib/1")
add_executable(foo foo.c)

>cmake --version
cmake version 2.8.11.2

>cmake .. -G "NMake Makefiles"

>type CMakeFiles\foo.dir\flags.make
...
C_FLAGS = ... -I"c:\Program Files\lib\2" -I"c:\Program Files\lib\1"
(0033527)
nomorgan   
2013-07-11 14:53   
Correct.

I made a mistake.

There is no bug

Thx
(0034643)
Robert Maynard   
2013-12-02 08:51   
Closing resolved issues that have not been updated in more than 4 months.