Hi Christian,
Thanks for working on this.
On 06/12/2016 05:59 AM, Christian Schmidbauer wrote:
> A similar idea has already been suggested in #10287
Yes.
> and is required for bug #15594.
That issue appears unrelated. Did you typo the number?
> Help/command/find_library.rst | 5 ++++
> Help/manual/cmake-properties.7.rst
Please also add the FIND_LIBRARY_USE_CUSTOM_SUFFIX item documentation,
or whatever it becomes after the discussion below.
> +If the :prop_gbl:`FIND_LIBRARY_USE_CUSTOM_SUFFIX` global property is set
> +all search paths will be tested as normal, with `LIB_SUFFIX` appended, and
> +with all matches of ``lib/`` replaced with `lib${LIB_SUFFIX}/`. This
> property
> +overrides both `FIND_LIBRARY_USE_LIB32_PATHS` and
> `FIND_LIBRARY_USE_LIB64_PATHS`.
[snip]
> +set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_CUSTOM_SUFFIX TRUE)
> +set(LIB_SUFFIX "XYZ")
Typically the FIND_LIBRARY_USE_LIB{32,64}_PATHS global properties
can be set by the platform information modules in CMake itself
on platforms that need the behavior. In what context might the
FIND_LIBRARY_USE_CUSTOM_SUFFIX/LIB_SUFFIX values be set in practice?
Thanks,
-Brad
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers