[CMake] POSITION_INDEPENDENT_CODE's [un]expected behaviour

2017-07-21 Thread Oleksii Vilchanskyi via CMake
Hello, I would like to ask about POSITION_INDEPENDENT_CODE target property. As of CMake 3.8.2 POSITION_INDEPENDENT_CODE appends -fPIE or -fPIC to CMAKE__FLAGS and CMAKE_EXE_LINKER_FLAGS when building an executable or a library respectively. However, to build a PIE -pie linker flag is additionally

Re: [CMake] CPack Multicore Usage

2017-07-21 Thread Chuck Atkins
> > In calls to cpack only one core is used if Makefiles are used. Is there > any option to enable multicore? > It depends on what your trying to achieve. Typically the bottleneck for CPack is in the compression step of the resulting tar (or rpm, etc.). In that case, CMake is limited by the liba

[CMake] CPack: Create debian packge for each sub-project

2017-07-21 Thread DKLind
I have a large project and I need to create a Debian package for each sub-project (essentially each add_subdirectory). I have been experimenting with CPack components as outlined here: https://cmake.org/cmake/help/v3.8/module/CPackComponent.html?highlight=cpack_components_grouping#variable:CPACK_C

Re: [CMake] CPack: Create debian packge for each sub-project

2017-07-21 Thread Domen Vrankar
2017-07-22 1:55 GMT+02:00 DKLind : > I have a large project and I need to create a Debian package for each > sub-project (essentially each add_subdirectory). > > I have been experimenting with CPack components as outlined here: > https://cmake.org/cmake/help/v3.8/module/CPackComponent. > html?high