View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011647CMakeCMakepublic2010-12-30 17:422011-01-03 10:16
ReporterFar McKamey 
Assigned ToBrad King 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionno change required 
Platformx86 VMOSUbuntuOS Version9.10
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0011647: Mangled CMAKE_MODULE_PATH value (via CURL project)
Descriptioncmake 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.
Additional Informationdunnkown if this is your or cURL, but it seems to be part of the CMAKE system.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0024357)
Brad King (manager)
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.

 Issue History
Date Modified Username Field Change
2010-12-30 17:42 Far McKamey New Issue
2011-01-03 10:16 Brad King Note Added: 0024357
2011-01-03 10:16 Brad King Status new => closed
2011-01-03 10:16 Brad King Assigned To => Brad King
2011-01-03 10:16 Brad King Resolution open => no change required


Copyright © 2000 - 2018 MantisBT Team