Re: [CMake] include restbed in my project

2018-05-09 Thread J Decker
So I have all these third party libraries I keep a copy of... https://github.com/d3x0r/SACK/tree/master/src/contrib So libressl for example, has cmakelists.txt https://github.com/d3x0r/SACK/blob/master/CMakeLists.txt#L680 add_subdirectory( src/contrib/libressl/${LIBRESSL_VERSION} ) which I alias

Re: [CMake] include restbed in my project

2018-05-09 Thread Christofer Jennings
Thanks for the reply. I haven't figured out how to use add_subdirectories like you suggested but I was able to get it working based on this https://github.com/josesj/rest-json-cpp-boilerplate It uses find_package and etc. ... maybe a little overkill, I don't know. But at least I got off the ground

Re: [CMake] rebuild_cache does not fully rebuild the cache information

2018-05-09 Thread Bill Hoffman
On 5/9/2018 4:42 AM, Nils Rathmann wrote: Hi, when I change the installation of external dependencies, which are located by find_packages, it seems, that it is not enough to run rebuild_cache. The information about external software is not thrown away and rebuild. I have to delete the CMakeCac

[CMake] target_link_libraries and Custom Properties

2018-05-09 Thread Marek Vojtko (Firaxis)
Hi, I have multiple library targets that each provide shader files and headers. I also have multiple executable targets that each depend on a different set of these library targets. The executable targets need to collect the shader files and headers of only the libraries they depend on in order

Re: [CMake] cmake finds libxml2 but still says its missing

2018-05-09 Thread Rolf Eike Beer
Florian Lindner wrote: Am 08.05.2018 um 15:12 schrieb Rolf Eike Beer: Am 2018-05-08 14:51, schrieb Florian Lindner: Hello, I try to compile my software like cmake -DCMAKE_TOOLCHAIN_FILE=../../toolchain.cmake -DBUILD_SHARED_LIBS=off ../.. cat ../../toolchain.cmake SET(CMAKE_SYSTEM_NAME Ha

[CMake] cmake finds libxml2 but still says its missing

2018-05-09 Thread Florian Lindner
Am 08.05.2018 um 15:12 schrieb Rolf Eike Beer: > Am 2018-05-08 14:51, schrieb Florian Lindner: >> Hello, >> >> I try to compile my software like >> >> cmake -DCMAKE_TOOLCHAIN_FILE=../../toolchain.cmake -DBUILD_SHARED_LIBS=off >> ../.. >> >>> cat ../../toolchain.cmake >> SET(CMAKE_SYSTEM_NAME Haz

Re: [CMake] -std=c++17 vs -std=c++1y

2018-05-09 Thread Robert Maynard
If you have standard required enabled the compiler version shouldn't decay down to 14 when asking for 17. I recommend having a small test repo and using cmake --trace/--trace-expand to determine where the gnu++1y is coming from. It is not clear when looking at Modules/Compiler/Clang-CXX.cmake how

[CMake] Forcing a target to be built if another target is built

2018-05-09 Thread Job Noorman
Hi all, We have a large codebase consisting of 200+ modules. Each module is defined in its own subdirectory and compiled as a static library. These modules are not final products on their own but are combined to create "projects". We have about 15 projects that all use a subset of the module

[CMake] rebuild_cache does not fully rebuild the cache information

2018-05-09 Thread Nils Rathmann
Hi, when I change the installation of external dependencies, which are located by find_packages, it seems, that it is not enough to run rebuild_cache. The information about external software is not thrown away and rebuild. I have to delete the CMakeCache.txt and rebuild again. It this intended