cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3494970 ] CMake warnings

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 04 Mar 2012 14:40:41 -0800

Bugs item #3494970, was opened at 2012-02-27 03:19
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3494970&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: theret (theret)
Assigned to: Daniel Stenberg (bagder)
Summary: CMake warnings

Initial Comment:
Curl version: 7.24.0
OS: any
CMake version: 2.8.5, 2.8.6, 2.8.7

Running CMake results in this warning:

CMake Warning (dev) at tests/CMakeLists.txt:1 (add_subdirectory):
  The source directory

    Z:/software/src/curl-7.24.0/tests/libtest

  does not contain a CMakeLists.txt file.

  CMake does not support this case but it used to work accidentally and is
  being allowed for compatibility.

  Policy CMP0014 is not set: Input directories must have CMakeLists.txt. Run
  "cmake --help-policy CMP0014" for policy details. Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

cmake --help-policy CMP0014
cmake version 2.8.6
  CMP0014
       Input directories must have CMakeLists.txt.

       CMake versions before 2.8 silently ignored missing CMakeLists.txt
       files in directories referenced by add_subdirectory() or subdirs(),
       treating them as if present but empty. In CMake 2.8.0 and above this
       policy determines whether or not the case is an error. The OLD
       behavior for this policy is to silently ignore the problem. The NEW
       behavior for this policy is to report an error.

       This policy was introduced in CMake version 2.8.0. CMake version
       2.8.6 warns when the policy is not set and uses OLD behavior. Use the
       cmake_policy command to set it to OLD or NEW explicitly.

Solution:

1. Developer, please update your CMake version.

2. Remove the lines

  add_subdirectory(libtest)
  add_subdirectory(server)

in curl-7.24.0/tests/CMakeLists.txt

3. or create dummy files:

touch curl-7.24.0/tests/server/CMakeLists.txt curl-7.24.0/tests/libtest/CMakeLists.txt

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2012-03-04 14:40

Message:
Thanks for the report, but I'm not sure I'm following

First, who's the "developer" in step (1) you mean? Surely we can demand
that all users who want to build curl (with cmake) would need a very recent
cmake version?

Then, in (2) you say we should remove two lines. They are the only two
lines in that file. Shouldn't we then just remove the file completely?
Won't any of those actions have any side-effects or put another way: why
was that file with those lines put there in the first place?

option (3) sounds mostly annoying to me...

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3494970&group_id=976
Received on 2012-03-04

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET