[CMake] Platform differences for ExternalProject_add URL

KC Jones kc.jones at skype.net
Wed Dec 8 17:17:48 EST 2010


[resending since the original seems to have never made it to the list.]

I'm using ExternalProject_add in a script that builds various libraries I depend on, and I'm running into platform differences when attempting to download a source archive from a sourceforge URL.  Sounds like a bug to me.  But I'm also guessing that sourceforge may be redirecting the URL get request, which may account for the problems on Linux -- and there may be better ways for me to get my task done.

The following unexpurgated CMakeLists.txt works on Mac (10.6.4), but the download fails (0byte result)  on Linux (Ubuntu 10.04):
----------
cmake_minimum_required(VERSION 2.8)

include(ExternalProject)

ExternalProject_Add(
  poco-1.3.6
  PREFIX poco
  URL http://downloads.sourceforge.net/project/poco/sources/poco-1.3.6/poco-1.3.6p2.tar.gz
  CONFIGURE_COMMAND ../poco-1.3.6/configure --no-tests --no-samples  --omit=Util,Net,Crypto,NetSSL_OpenSSL,Data,Data/SQLite,Data/ODBC,Data/MySQL,Zip
  BUILD_COMMAND make 
)
----------

Any words of wisdom for a cmake newbie?


KC Jones
kc.jones at skype.net
SkypeId: bernalkc



More information about the CMake mailing list