Patrick Boettcher wrote:
> I came across the INTERFACE-type of libraries when writing a
> FindModule.cmake-file for custom libraries installed by my
> project.
You don't provide FindModules for your CMake-built libraries.
See
https://cmake.org/cmake/help/v3.4/manual/cmake-packages.7.html
Tha
Hi all,
I stumbled upon a problem where a find module did tests via
"check_function_exists". It first checks if C is enabled via the
ENABLED_LANGUAGES.
Now this does not seem to be reliable, as the project language is not C, but C
is enables by a project included via add_subdirectory. Now ENABLE
On 02/29/2016 04:06 PM, Clément Gregoire wrote:
Speaking of imported targets, I'm wondering why alias imported targets
aren't added to all default FindXXX.cmake scripts. This would help
provide better examples, and have the community use better
cmakelists.txt and hopefully reduce the bad usag
Speaking of imported targets, I'm wondering why alias imported targets
aren't added to all default FindXXX.cmake scripts. This would help provide
better examples, and have the community use better cmakelists.txt and
hopefully reduce the bad usages of include_directories and such
Le lun. 29 févr. 2
On 02/29/2016 03:34 PM, Patrick Boettcher wrote:
Hi list,
I came across the INTERFACE-type of libraries when writing a
FindModule.cmake-file for custom libraries installed by my
project.
Here is what I'm doing after having found the libraries and the
determined the paths: LIB1 is the library an
You can check for existence of a variable and you can invert the result of the
evaluation:
if(DEFINED )
# called if variable exists, never mind if it's empty or not
endif()
if(NOT DEFINED )
# called if variable is not defined
endif()
if(NOT )
# called if variable is empt
Hi list,
I came across the INTERFACE-type of libraries when writing a
FindModule.cmake-file for custom libraries installed by my
project.
Here is what I'm doing after having found the libraries and the
determined the paths: LIB1 is the library and LIB1_INCLUDE_DIRS its
include-dirs:
add_librar
Hi Petr,
> On 29.02.2016, at 15:27, Petr Kmoch wrote:
>
> Hi Jan.
>
> No, that's not possible. Internally, CMake does not differentiate between
> "list" and "string" in any way.
OK, thanks for the clarification.
Best,
Jan
--
Powered by www.kitware.com
Please keep messages on-topic and che
Hi Jan.
No, that's not possible. Internally, CMake does not differentiate between
"list" and "string" in any way. An empty list and an empty string are
indistinguishable. A non-empty string containing N semi-colons is
indistinguishable from a list containing N+1 elements.
Quantum mechanics has wa
Hi cmakers,
can I create an empty list which evaluates to true? The way I tried they
evaluate to false:
set(BLAS_LIBRARIES "") # trying to create an empty list
if(BLAS_LIBRARIES)
# not called
endif()
Cheers,
Jan
--
Powered by www.kitware.com
Please keep messages on-topic and check the
10 matches
Mail list logo