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: Mon, 27 Feb 2012 03:19:58 -0800

Bugs item #3494970, was opened at 2012-02-27 03:19
Message generated for change (Tracker Item Submitted) made by theret
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

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

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET