[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: [CMake] Auto generating package configuration file?
From: Damien R <damienrg+list () gmail ! com>
Date: 2018-02-14 23:00:51
Message-ID: CAKPeRif1NqFidaPGdyb-xf-kk_WOVHWA-ku=ABR2+mG3ROY4Ng () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi,
I know that I could write FooConfig.cmake.in, call
configure_package_config_file() to generate package configuration file and
call write_basic_package_version_file() to generate a version file.
Typically FooConfig.cmake.in contains:
@PACKAGE_INIT@
find_dependency(...)
My question is why do I need to do that? Is it not possible for cmake to
autogenerate theses files?
I may be wrong but I think that "modern cmake" has the necessary
informations to do that.
Regards,
Damien R.
[Attachment #5 (text/html)]
<div dir="ltr">Hi,<br><br>I know that I could write <a \
href="http://FooConfig.cmake.in">FooConfig.cmake.in</a>, call \
configure_package_config_file() to generate package configuration file and call \
write_basic_package_version_file() to generate a version file.<br>Typically <a \
href="http://FooConfig.cmake.in">FooConfig.cmake.in</a> \
contains:<br>@PACKAGE_INIT@<br>find_dependency(...)<br><br>My question is why do I \
need to do that? Is it not possible for cmake to autogenerate theses files?<br>I may \
be wrong but I think that "modern cmake" has the necessary informations to \
do that.<br><br>Regards,<br><br>Damien R.<br></div>
--
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:
https://cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic