iron261 / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

Multiple warnings when configuring OpenJPEG on MacOS with CMake 3.x (trunk) #443

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Building Shared library (default) adds one warning.
Using -DOPJ_USE_DSYMUTIL:BOOL=TRUE adds even more warnings

Original issue reported on code.google.com by m.darb...@gmail.com on 25 Nov 2014 at 9:50

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r2947.

Warnings related to OPJ_USE_DSYMUTIL are fixed

Original comment by m.darb...@gmail.com on 25 Nov 2014 at 9:52

GoogleCodeExporter commented 9 years ago
For the last warning, a decision has to be made :
http://www.kitware.com/blog/home/post/510

/Applications/CMake-3.1.0-rc-2.app/Contents/bin/cmake --help-policy CMP0042
CMP0042
-------

``MACOSX_RPATH`` is enabled by default.

CMake 2.8.12 and newer has support for using ``@rpath`` in a target's install
name.  This was enabled by setting the target property
``MACOSX_RPATH``.  The ``@rpath`` in an install name is a more
flexible and powerful mechanism than ``@executable_path`` or ``@loader_path``
for locating shared libraries.

CMake 3.0 and later prefer this property to be ON by default.  Projects
wanting ``@rpath`` in a target's install name may remove any setting of
the ``INSTALL_NAME_DIR`` and ``CMAKE_INSTALL_NAME_DIR``
variables.

This policy was introduced in CMake version 3.0.  CMake version
3.1.0-rc2 warns when the policy is not set and uses OLD behavior.  Use
the cmake_policy command to set it to OLD or NEW explicitly.

Original comment by m.darb...@gmail.com on 25 Nov 2014 at 10:33

GoogleCodeExporter commented 9 years ago
Since INSTALL_NAME_DIR is defined for APPLE in OpenJPEG, not much to decide.
Validate the new policy to remove warning

Original comment by m.darb...@gmail.com on 25 Nov 2014 at 11:55

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2948.

Original comment by m.darb...@gmail.com on 25 Nov 2014 at 11:57