MantisBT - CMake
View Issue Details
0011647CMakeCMakepublic2010-12-30 17:422011-01-03 10:16
Far McKamey 
Brad King 
normalblockalways
closedno change required 
x86 VMUbuntu9.10
CMake-2-6 
 
0011647: Mangled CMAKE_MODULE_PATH value (via CURL project)
cmake version 2.6-patch 4

Cross compiling CURL using CMAKE. This appears to be a CMAKE issue though.

Error at CMakeLists.tx:189

Error Text:
CMake Error at CMakeLists.txt:189 (include):
  include could not find load file:

    /home/far/dev_puma/git_managed/curl/CMake;/CheckTypeSize.cmake


At run time include value evaluates to be "/home/far/dev_puma/git_managed/curl/CMake;/CheckTypeSize.cmake"
which is wrong, I'm assuming it should be "/home/far/dev_puma/git_managed/curl/CMake/CheckTypeSize.cmake"

text of CMakeLists.txt:188
if(CMAKE_CROSSCOMPILING)
  include ("${CMAKE_MODULE_PATH}/CheckTypeSize.cmake")

CMAKE_MODULE_PATH is generated at CMakeLists.txt:21

CMakeLists.txt:21
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")

:. on my local build, if I change CMakeLists.txt:21 to be
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake")

it compiles.
dunnkown if this is your or cURL, but it seems to be part of the CMAKE system.
No tags attached.
Issue History
2010-12-30 17:42Far McKameyNew Issue
2011-01-03 10:16Brad KingNote Added: 0024357
2011-01-03 10:16Brad KingStatusnew => closed
2011-01-03 10:16Brad KingAssigned To => Brad King
2011-01-03 10:16Brad KingResolutionopen => no change required

Notes
(0024357)
Brad King   
2011-01-03 10:16   
This is a bug in the upstream Curl CMake code. The code

  include ("${CMAKE_MODULE_PATH}/CheckTypeSize.cmake")

evaluates the "CMAKE_MODULE_PATH" variable and substitutes its content literally into the string. If the value has a semicolon then that will be put in as well. No such file exists of course.

It looks like this bug existed in the originally contributed CMake support added by upstream Curl commit 4c5307b4. Likely no one has tried cross-compiling it since then.

If you need further help, please post to our mailing list:

  http://www.cmake.org/mailman/listinfo/cmake [^]

Thanks.