[CMake] Imported targets and include ordering

2016-08-11 Thread rleigh
I've come across an odd situation where I'm unsure what the most portable and recommended solution would be. I'm linking a program against the CURL and ICU libraries. CURL has traditional variables for the includes and libraries; ICU has imported targets. In FindICU: set_target_pr

Re: [CMake] No response so far. -- Looking for fixed contract help building Library with CMake.

2016-08-12 Thread rleigh
On 2016-08-12 15:50, Ken Boulange wrote: I am a one man company that needs to get a Library built from C/C++ source using CMake. My system is windows 7 Professional. I am running MVS 8 (Microsoft Visual Studios 8) I need the following library built from the below URL (It's a DICOM image Librar

Re: [CMake] Proper way to find system copy of libxml2 on macOS

2016-10-12 Thread rleigh
On 2016-10-12 15:28, Konstantin Tokarev wrote: Hello, In my cmake project I need to use system version of libxml2 on macOS (/usr/lib/libxml2.dylib), however in case it is installed in MacPorts the latter version is picked by find_package. On the other hand I'd like to avoid hardcoding absolute p

Re: [CMake] How to add project files?

2017-07-14 Thread rleigh
On 2017-07-14 03:33, Florian Lindner wrote: Now, in the docs I everywhere read not to add the files using GLOB. However, I have found no definitive guide how to add project files in a large project with subdirs like that. How would you do it in cmakeish fashion? List each file explicitly. For

Re: [CMake] FindIce module and C++11

2017-08-10 Thread rleigh
On 2017-08-10 09:50, Jones J.W. wrote: I'm building my code on Linux using the g++ flags "-std=c++11". This means that I must link with the libIce++11 libraries instead of libIce. The FindIce module, however as no provision for choosing these libraries thus resulting in unresolved symbols at lin

Re: [CMake] FindIce module and C++11

2017-08-11 Thread rleigh
s at the moment, and so it's not at top of my list. If you wanted to propose a change an/or open a merge request that would certainly be welcome. I have done some preliminary work here: https://gitlab.kitware.com/rleigh/cmake/commits/ice-3.7.0 It's working on Linux, but no

Re: [CMake] Compiler output for check_cxx_source_compiles

2017-09-28 Thread rleigh
On 2017-09-28 03:27, Saad Khattak wrote: Hello, Is it possible to get the compiler output for check_cxx_source_compiles so that I can check why it failed? It should have been recorded in CMakeFiles/CMakeError.log. Regards, Roger -- Powered by www.kitware.com Please keep messages on-topic an

Re: [CMake] Contribute Find-module to CMake vs Config-file to upstream

2018-05-22 Thread rleigh
On 2018-05-21 18:39, Mateusz Loskot wrote: I've been recently trying to update/add Find-modules to CMake: updated FindJPEG, proposed FindODBC and most recently FindLZ4. […] The FindLZ4 discussion basically ended with suggestion from Brad that, instead of adding Find-module to CMake, I should ap

Re: [CMake] Making and using static and shared libraries on Windows with Visual Studio

2015-07-30 Thread rleigh
It turns out this was my fault: removing the instantiation/export of std::char_traits was sufficient to correct the linker errors. Sorry for the noise, Roger -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitwa

Re: [CMake] Making and using static and shared libraries on Windows with Visual Studio

2015-07-30 Thread rleigh
> Did you try to remove all the explicit template exports? I never had to do > it and compiled many static and shared libraries on Windows. Of course VS > is going to complain about exporting template classes but as long as you > don't try to mix VS versions I think you can safely ingore those warn

[CMake] [PATCH] FindBoost does not detect absence of header file

2016-05-11 Thread rleigh
On 2016-04-12 11:22, Joachim Wuttke wrote: FindBoost does not detect absence of header files. To be specific: Run the following under cmake version 3.5.1: set(Boost_NO_BOOST_CMAKE ON) # prevent shortcut set(Boost_USE_STATIC_LIBS OFF) set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME

Re: [CMake] [cmake-developers] [PATCH] FindBoost does not detect absence of header file

2016-05-11 Thread rleigh
On 2016-05-11 19:30, Chuck Atkins wrote: I guess it doesn't really matter but for the libraries that don't have a single include header, should you be using these instead: * container/container_fwd.hpp * exception/all.hpp * filesystem.hpp * math_fwd.hpp (instead o

Re: [CMake] Make install permissions advice for ubuntu 14.04 with cmake 2.8

2016-06-06 Thread rleigh
On 2016-06-06 16:39, B00083603 Michael O Brien wrote: Hi Roger, When I run sudo -s I get bash: /home/myaccount/ : Permission denied but I get a root prompt on the terminal. I get a permission denied when I try to cd into anything deeper than /home/myaccount/ Yes the /home/ is an NFS mount as i