[cmake-developers] [CMake 0013401]: FindSDL_sound.cmake produces warnings
Mantis Bug Tracker
mantis at public.kitware.com
Sat Jul 14 05:44:46 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13401
======================================================================
Reported By: vayerx
Assigned To:
======================================================================
Project: CMake
Issue ID: 13401
Category: Modules
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-07-14 05:44 EDT
Last Modified: 2012-07-14 05:44 EDT
======================================================================
Summary: FindSDL_sound.cmake produces warnings
Description:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:3 (ADD_EXECUTABLE):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "DetermineSoundLibs" links to some libraries for which the
linker must search:
-lpthread
and other libraries with known full path:
/lib64/libSDL_sound.so
CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.
Steps to Reproduce:
find_package(SDL_sound REQUIRED)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-07-14 05:44 vayerx New Issue
======================================================================
More information about the cmake-developers
mailing list