Ticket #767 (closed defect: fixed)
Adapt OpenSync build environment for CMake 2.6.0
| Reported by: | dgollub | Owned by: | bricks |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.38 |
| Component: | OpenSync | Version: | 0.36 |
| Severity: | normal | Keywords: | |
| Cc: | bricks |
Description
With CMake 2.6.0 the OpenSync? build environment gets several developer warnings about porting from CMake 2.4.X to 2.6.0. Those are confusing for non-developers.
Change History
comment:2 Changed 5 years ago by bricks
- Owner changed from dgollub to bricks
Only a minor warning left
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
We have to change all Find cmake files to use FindPkgConfig? instead of PKGCONFIG. Currently these files are using PKGCONFIG:
modules/FindLibGlade.cmake:20: PKGCONFIG( libglade-2.0 _libglade_include_DIR _libglade_link_DIR _libglade_link_FLAGS _libglade_cflags ) modules/FindGNOKII.cmake:19: PKGCONFIG( gnokii _gnokii_include_DIR _gnokii_link_DIR _gnokii_link_FLAGS _gnokii_cflags ) modules/FindPilotLink.cmake:19: PKGCONFIG( pilot-link _pilotlink_include_DIR _pilotlink_link_DIR _pilotlink_link_FLAGS _pilotlink_cflags ) modules/FindSqlite.cmake:16: PKGCONFIG( sqlite3 _LibSQLITEIncDir _LibSQLITELinkDir _LibSQLITELinkFlags _LibSQLITECflags )
Note: See
TracTickets for help on using
tickets.

dani@sugga:~/projects/opensync/opensync/build> cmake ../ -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig -- Found Python: /usr/lib/python2.5/config/libpython2.5.a CMake Warning (dev) at opensync/CMakeLists.txt:127 (ADD_DEFINITIONS): Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" 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. -- Configuring done CMake Warning (dev) at opensync/CMakeLists.txt:126 (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 "osplugin" links to some libraries for which the linker must search: glib-2.0, gthread-2.0, rt, gmodule-2.0, dl, glib-2.0, gthread-2.0, rt gmodule-2.0, dl, xml2, exslt, xslt, z, m, gcrypt, gpg-error, xml2, exslt xslt, z, m, gcrypt, gpg-error, sqlite3, glib-2.0 and other libraries with known full path: /home/dani/projects/opensync/opensync/build/opensync/libopensync.so.1.0.0 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: /home/dani/projects/opensync/opensync/build dani@sugga:~/projects/opensync/opensync/build>