Re: [CMake] Install( Targets ) loses executable permission

2015-04-21 Thread J Decker
On Tue, Apr 21, 2015 at 9:21 PM, Hendrik Sattler wrote: > > > Am 22. April 2015 04:01:40 MESZ, schrieb J Decker : > >the library is built 'tasks.isp' with rwxr-xr-x > >but it's installed with rw-r--r-- > > > >(platform is rasberry pi) > > Normal libraries on linux don't need any executable bit se

Re: [CMake] Install( Targets ) loses executable permission

2015-04-21 Thread J. Caleb Wherry
You can pass in the below variable to CMake (or set it in you CMake file) and you should get what you want: -DCMAKE_INSTALL_SO_NO_EXE=0 -Caleb On Tue, Apr 21, 2015 at 10:01 PM, J Decker wrote: > Basically this is the command I use to install some plugins... > BINARY_OUTPUT_DIR is ${CMAKE_INSTA

Re: [CMake] Install( Targets ) loses executable permission

2015-04-21 Thread Hendrik Sattler
Am 22. April 2015 04:01:40 MESZ, schrieb J Decker : >the library is built 'tasks.isp' with rwxr-xr-x >but it's installed with rw-r--r-- > >(platform is rasberry pi) Normal libraries on linux don't need any executable bit set. That the linker creates files with that permission has probably other

[CMake] Install( Targets ) loses executable permission

2015-04-21 Thread J Decker
Basically this is the command I use to install some plugins... BINARY_OUTPUT_DIR is ${CMAKE_INSTALL_PREFIX}/bin project_target is a argument to the macro and it's 'plugins' install( TARGETS ${proj} · RUNTIME DESTINATION ${BINARY_OUTPUT_DIR}/${project_target} · LIBRARY DESTINAT

[CMake] "sudo make install; DESTDIR=foo make install" fails

2015-04-21 Thread Dan Kegel
If "sudo make install" is done in btmp, it leaves a file called "install_manifest.txt" in the btmp directory owned by root. This causes a later non-sudo "make install" (where configuration has changed the destination directory to something that does not require sudo) to fail. Perhaps "make install

[CMake] add_custom_command: update dependencies over rebuilds

2015-04-21 Thread kvolkov
Hello, Is there a way to to update add_custom_command dependencies over project rebuilds ? Current status - code generator that builds set of sources taking one input file as parameter - codegen input file may include other input files - already solved task of getting list of output files, parsin

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-21 Thread David Cole via CMake
I can only imagine that would cause IMMENSE problems. I depend on configure_file being an immediate action in many many many places. (i.e. -- the very next line of code in my CMakeLists.txt file can depend on the result of configure_file being on disk and up to date at the moment of configure proc

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-21 Thread Alan W. Irwin
On 2015-04-18 11:35+0200 Stephen Kelly wrote: Alan W. Irwin wrote: So is it recommended that a two-step procedure be used to configure a file? For example: Yes, that seems to be a valid thing to do. If the above complications for configured files are the only way to deal with a mixture of