Bug #41818 CMake warning when compiling on Windows Vista VS2005
Submitted: 1 Jan 2009 14:23 Modified: 20 Jan 2010 3:38
Reporter: Miguel Solorzano Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:any OS:Windows (Vista 64-bit)
Assigned to: Kent Boortz CPU Architecture:Any

[1 Jan 2009 14:23] Miguel Solorzano
Description:
The bellow warning is displayed when using CMake:

-- Configuring done
CMake Warning (dev) at extra/CMakeLists.txt:22 (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 "comp_err" links to some libraries for which the linker must
  search:

    wsock32

  and other libraries with known full path:

    G:/share/dbs/mysql-5.1/dbug/Debug/dbug.lib
    G:/share/dbs/mysql-5.1/mysys/Debug/mysys.lib
    G:/share/dbs/mysql-5.1/strings/Debug/strings.lib
    G:/share/dbs/mysql-5.1/zlib/Debug/zlib.lib

  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.

-- Generating done
-- Build files have been written to: G:/share/dbs/mysql-5.1
        1 arquivo(s) copiado(s).

g:\share\dbs\mysql-5.1>

Additional Info:

g:\share\dbs\mysql-5.1>cmake --version
cmake version 2.6-patch 2

How to repeat:
Compile MySQL on Windows

Suggested fix:
-
[20 Jan 2010 3:38] MySQL Verification Team
I couldn't repeat anymore with current bzr source.