MantisBT - CMake
View Issue Details
0013401CMakeModulespublic2012-07-14 05:442016-06-10 14:31
vayerx 
Eric Wing 
normalminoralways
closedmoved 
CMake 2.8.7 
 
0013401: FindSDL_sound.cmake produces warnings
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.
find_package(SDL_sound REQUIRED)
No tags attached.
Issue History
2012-07-14 05:44vayerxNew Issue
2012-07-16 09:01Brad KingAssigned To => Eric Wing
2012-07-16 09:01Brad KingStatusnew => assigned
2016-06-10 14:28Kitware RobotNote Added: 0042088
2016-06-10 14:28Kitware RobotStatusassigned => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042088)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.