Re: [CMake] target_sources vs. PUBLIC_HEADER for libraries

2019-10-11 Thread Innokentiy Alaytsev
RIVATE $ $) endforeach (HEADER IN HEADERS) Hope that will somewhat help and won't hurt anyone's fillings and mind. Best regards, Innokentiy Alaytsev -- Sent from: http://cmake.3232098.n2.nabble.com/ -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] Problem with AUTOMOC on WIN32

2019-06-18 Thread Innokentiy Alaytsev
is by declaring them as INTERFACE sources of the library target. Best regards, Innokentiy Alaytsev -- Sent from: http://cmake.3232098.n2.nabble.com/ -- 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

Re: [CMake] Appending to CMAKE_CXX_FLAGS

2018-09-11 Thread Innokentiy Alaytsev
Hello! Did you consider adding the flag manually during project configuration? I do not know you use case, but after some thinking about the best way of achieving multiprocess compilation under MSVS with CMake I decided, that the simplest, most portable and flexible is to just add this flag

Re: [CMake] ExternalProject, continuous integration and caching builds

2018-09-05 Thread Innokentiy Alaytsev
Hello! You may try to perform some kind of "caching" actions yourself: store a checksum for the downloaded dependency archive and only build it if its checksum changes or the dependency with this checksum hasn't been already built. You may only store the checksum for the archive download link if

Re: [CMake] ExternalProject, continuous integration and caching builds

2018-09-05 Thread Innokentiy Alaytsev
Hello! You may try to perform some "caching" actions yourself: store some kind of a checksum for the archive with the downloaded sources and only build ExternalProject if the checksum changes or if there is no previously built ExternalProject with the same checksum. It is also possible to only

Re: [CMake] Development Workflow with CMake and VS2017

2018-07-12 Thread Innokentiy Alaytsev
Hello! I usually just download prebuild binaries if they are available or build the required dependency from sources. There are some libraries (and other software) that are not Windows-friendly (These products are still considered cross-platform and usually are free in the way fanatics from FSF

Re: [CMake] Boost + CMake + Windows + Sanity -> Possible?

2018-07-12 Thread Innokentiy Alaytsev
egards, Innokentiy Alaytsev -- Sent from: http://cmake.3232098.n2.nabble.com/ -- 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 of

Re: [CMake] [Error] While compiling as a pre requirement of a software

2018-07-02 Thread Innokentiy Alaytsev
Hello! Did you try just to install CMake in your virtual machine? Best regards, Innokentiy Alaytsev -- Sent from: http://cmake.3232098.n2.nabble.com/ -- 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

Re: [CMake] Dependencies with static libraries

2018-06-28 Thread Innokentiy Alaytsev
Hello! I hope you will forgive me a silly question: did you consider checking last change date of the executable? And is there any way you can ensure that the changes to the library a present in the executable? Best regards, Innokentiy Alaytsev -- Sent from: http://cmake.3232098.n2.nabble.com

Re: [CMake] Super build project with the same library but different version

2018-06-28 Thread Innokentiy Alaytsev
Hello! The DownloadProject CMake module may be of use in your situation. Basically, you can add the external project with the add_subdirectory() function in the main build tree. However, there might be some problems with two targets with the same

Re: [CMake] How to change (and account for) default Visual Studio compiler flags

2018-06-28 Thread Innokentiy Alaytsev
Jason Heeris wrote > On Thu., 28 Jun. 2018, 6:07 pm Innokentiy Alaytsev, > alaitsev@ > > wrote: >> These flags are visible in cmake-gui >> if you set (I don't know/remember the right word) the Advanced combo box >> (setting Grouped will dramatically improve reada

Re: [CMake] How to change (and account for) default Visual Studio compiler flags

2018-06-28 Thread Innokentiy Alaytsev
d will dramatically improve readability). Hope this will be helpful in any way. Best regards, Innokentiy Alaytsev -- Sent from: http://cmake.3232098.n2.nabble.com/ -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kit

Re: [CMake] How can I compile and link modular code into a single DLL with MSVC?

2018-06-28 Thread Innokentiy Alaytsev
Innokentiy Alaytsev wrote > The closest to what you describe could be a horrible abomination > the project that optionally fetches dependencies from the remote repo and > adds them as subdirectories to build and link to them (just like in this > example project https://github

Re: [CMake] How can I compile and link modular code into a single DLL with MSVC?

2018-06-28 Thread Innokentiy Alaytsev
add an object library and provide it as sources for your target <https://cmake.org/cmake/help/v3.5/command/add_library.html#object-libraries> . However, I did not succeed when I tried it on my own project (most likely due to my own incompetence). Jason Heeris wrote > On Thu, 28 Jun 201

Re: [CMake] How can I compile and link modular code into a single DLL with MSVC?

2018-06-27 Thread Innokentiy Alaytsev
ked to the final artefact.Best regards,Innokentiy Alaytsev -- Sent from: http://cmake.3232098.n2.nabble.com/-- 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 com

Re: [CMake] How can I compile and link modular code into a single DLL with MSVC?

2018-06-26 Thread Innokentiy Alaytsev
that you use in your CMake build script or just a representation of the general idea? Best regards, Innokentiy Alaytsev -- Sent from: http://cmake.3232098.n2.nabble.com/ -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake

Re: [CMake] Why does INTERFACE type targets only support whitelisted properties?

2018-06-23 Thread Innokentiy Alaytsev
tching INTERFACE_* are allowed to be set. I don't know whether it is a bug or a feature, but this works not only for standard CMake target properties but for user-defined properties as well. Best regards Innokentiy Alaytsev -- Sent from: http://cmake.3232098.n2.nabble.com/ -- Powered by www.kitware.