Re: [CMake] Create Mac OS Bundle with VTK and Qt

2017-09-08 Thread Oleksii Vilchanskyi via CMake
Hello, > 1) I try to add an icon without success > When I launch my app, the default icon is used and not my icon. Can you elaborate on this? You say that the .icns file is under Resources and the final Info.plist contains the proper key with the proper value and that a non-default icon is used

[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