Re: [CMake] Memory usage and configuration time for large project

2018-05-04 Thread Patrick E Gartung
Just to be clear, the memory and time used are just to configure and generate the makefiles or Ninja file. The build itself can take several hours. On 4/30/18, 4:55 PM, "R0b0t1" wrote: On Mon, Apr 30, 2018 at 4:44 PM, Patrick E Gartung wrote: >

Re: [CMake] Why isn't target_link_libraries not enough in some cases?

2018-05-04 Thread Francis Giraldeau
> Hi, > > I am fetching and building SDL2 using FetchContent and then using > target_link_libraries(MyExe SDL2) in the hopes that the required include > directories and libraries will be added populated properly. The example > project can be found here: > >

[CMake] Linking programs with Clang & OpenMP fails

2018-05-04 Thread Kim Walisch
Hi, The latest Clang-6.0 compiler finally enables OpenMP by default on Linux (e.g. Ubuntu-18 x86_64). But OpenMP programs using Clang-6.0/CMake-3.10 fail to compile: [100%] Linking CXX executable primecount libprimecount.a(P2.cpp.o): In function `.omp_outlined..7': P2.cpp:(.text+0x2194):

Re: [CMake] Memory usage and configuration time for large project

2018-05-04 Thread Isaiah Norton
As one ballpark datapoint: a "superbuild" of 3D Slicer (slicer.org) has a similar object and library count: macbook-pro:s5nj inorton$ find ./ -name *.o | wc -l >14127 macbook-pro:s5nj inorton$ find ./ -name *.dylib -or -name *.so | wc -l > 2158 Based on a few quick tests, the aggregate

Re: [CMake] Why isn't target_link_libraries not enough in some cases?

2018-05-04 Thread Craig Scott
On Sat, May 5, 2018 at 1:33 AM, Francis Giraldeau < francis.girald...@gmail.com> wrote: > > Hi, > > > > I am fetching and building SDL2 using FetchContent and then using > > target_link_libraries(MyExe SDL2) in the hopes that the required include > > directories and libraries will be added

Re: [CMake] Linking programs with Clang & OpenMP fails

2018-05-04 Thread Kim Walisch
Hi, I have figured out what the problem is: LLVM/Clang with OpenMP requires linking against libatomic only when using 128-bit integers. The following program fails to compile using Clang-6.0 on Ubuntu 18 x86_64 using: $ clang++ -fopenmp=libomp test.cpp #include int main() { __int128_t

[CMake] Install libraries defined in INTERFACE targets

2018-05-04 Thread rozelak
Hello, I build a project which consists of several "modules" with various mutual dependencies. Each module defines its OBJECT target as:         # Module 1:     add_library(Module1 OBJECT )     target_include_directories(Module1 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})      

[Cmake-commits] CMake branch, master, updated. v3.11.1-702-ge628d6c

2018-05-04 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via e628d6cd066774e4c95ec368fc6ef0be731ff0a5 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.11.1-700-g5e5ef61

2018-05-04 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 5e5ef61ed3b5808dfe1a71623ec12c451d7fe385 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.11.1-703-g135825d

2018-05-04 Thread Kitware Robot
VERSION_MINOR 11) -set(CMake_VERSION_PATCH 20180504) +set(CMake_VERSION_PATCH 20180505) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/

[Cmake-commits] CMake branch, master, updated. v3.11.1-698-gfc35e81

2018-05-04 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via fc35e817ee243d31c5846d09b0b21f2756a0727b (commit) via