cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cmake errors

From: Dimitre Dimitrov <dimitre_at_zarloc.com>
Date: Tue, 12 Oct 2010 16:35:33 +1100

  Hi Guys,
I am a newbie in cmake and also in curl.
I have downloaded curl-7.21.1 and tried to build curl.
I am using cmake to generate the project files, but when I
have run it with the following settings :
   C:/curl-7.21.1 as source code directory
and
c:/curl-7.21.1 as dir for the binaries it gave me the following errors:

CMake Error: Error in cmake code at

C:/curl-7.21.1/binaries/lib/Makefile.inc.cmake:7:

Parse error. Expected a command name, got right paren with text ")".

CMake Error at lib/CMakeLists.txt:9 (include):

include could not find load file:

C:/curl-7.21.1/binaries/lib/Makefile.inc.cmake

CMake Error: Error in cmake code at

C:/curl-7.21.1/binaries/src/Makefile.inc.cmake:7:

Parse error. Expected a command name, got right paren with text ")".

CMake Error at src/CMakeLists.txt:12 (include):

include could not find load file:

C:/curl-7.21.1/binaries/src/Makefile.inc.cmake

CMake Error at src/CMakeLists.txt:18 (add_executable):

add_executable called with incorrect number of arguments

CMake Error at src/CMakeLists.txt:36 (target_link_libraries):

Cannot specify link libraries for target "curl" which is not built by this

project.

Configuring incomplete, errors occurred!

Seems to me that all the errors are caused by the error in the
Makefile.inc.cmake
which is produced by Cmake. (line 7,9 and 11 contain only ")" , which is
not right).
I tried to comment out this lines but when cmake is rerun it overwrites
my commenting.

I will appreciate very much your help.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-12