[cmake-developers] Using pkgconf
APEKE, SENA (ext)
sena.apeke.external at atos.net
Fri Jun 15 05:19:26 EDT 2018
Hello,
We are beginners of cmake and currently we use it for porting mariadb. When we start manufacturing, we get a hang in the file CMakeDetermineCCompiler.cmake :
................................................
................................................
opt/freeware/share/cmake/Modules/CMakeDetermineCCompiler.cmake(38): if(NOT CMAKE_C_COMPILER_NAMES )
/opt/freeware/share/cmake/Modules/CMakeDetermineCCompiler.cmake(39): set(CMAKE_C_COMPILER_NAMES cc )
/opt/freeware/share/cmake/Modules/CMakeDetermineCCompiler.cmake(42): if(${CMAKE_GENERATOR} MATCHES Visual Studio )
/opt/freeware/share/cmake/Modules/CMakeDetermineCCompiler.cmake(43): elseif(${CMAKE_GENERATOR} MATCHES Xcode )
/opt/freeware/share/cmake/Modules/CMakeDetermineCCompiler.cmake(46): else()
/opt/freeware/share/cmake/Modules/CMakeDetermineCCompiler.cmake(47): if(NOT CMAKE_C_COMPILER )
/opt/freeware/share/cmake/Modules/CMakeDetermineCCompiler.cmake(48): set(CMAKE_C_COMPILER_INIT NOTFOUND )
/opt/freeware/share/cmake/Modules/CMakeDetermineCCompiler.cmake(51): if(NOT $ENV{CC} STREQUAL )
/opt/freeware/share/cmake/Modules/CMakeDetermineCCompiler.cmake(52): get_filename_component(CMAKE_C_COMPILER_INIT $ENV{CC} PROGRAM PROGRAM_ARGS CMAKE_C_FLAGS_ENV_INIT )
Someone understand this problem? we need help please,
Thanks in advance !
Sena
-----Original Message-----
From: cmake-developers [mailto:cmake-developers-bounces at cmake.org] On Behalf Of Brad King
Sent: Thursday, June 14, 2018 8:54 PM
To: Paul Fultz II
Cc: cmake-developers at cmake.org
Subject: Re: [cmake-developers] Using pkgconf
On 06/14/2018 01:20 PM, Paul Fultz II wrote:
>> meta-packages that cover multiple components?
>
> You can just create a .pc file that adds each component in the requires.
That assumes that all components are wanted and are meant to be all used together at once for linking. CMake's find_package command is meant to find what's available. Project code then links to some subset of the actual targets available. Maybe we'd need a variable-only .pc file with a specific naming convention for that.
> find_package(zlib CONF VERSION > 1.0)
find_package already has a "CONFIG" mode. The semantics of pkgconf are different enough I don't think we should overload the command. I'd rather have a separate find_pkgconf command.
Or maybe another name will be appropriate depending on the semantics designed.
-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:
https://cmake.org/mailman/listinfo/cmake-developers
More information about the cmake-developers
mailing list