Re: [CMake] Globally Set Target Properties

2011-11-08 Thread Michael Hertling
On 11/08/2011 01:36 PM, Schuchard, Matthew wrote: > Thanks, I think I must be doing something wrong elsewhere then, because I > follow the same syntax as what you wrote. > However, it is not working for me which means my error must be somewhere else. Could you provide a minimal but complete exemp

Re: [CMake] Globally Set Target Properties

2011-11-08 Thread Schuchard, Matthew
Thanks, I think I must be doing something wrong elsewhere then, because I follow the same syntax as what you wrote. However, it is not working for me which means my error must be somewhere else. I had thought, based on a stack overflow link, that CMAKE_STATIC_LIBRARY_PREFIX was only for linking t

Re: [CMake] Globally Set Target Properties

2011-11-07 Thread Michael Wild
Sorry, I misread your message. The following works for me: <8-- cmake_minimum_required(VERSION 2.8) project(static) set(CMAKE_STATIC_LIBRARY_PREFIX) add_library(a STATIC a.c) add_library(b STATIC b.c) >8-- Michael On 11/07/2011 05:14 PM, Schuchard, Matthew wrot

Re: [CMake] Globally Set Target Properties

2011-11-07 Thread Michael Hertling
On 11/07/2011 05:14 PM, Schuchard, Matthew wrote: > Thanks for the response. > > Actually, that is what I want to do: > > "> Specifically, I need to remove the prefix "lib" from all statically >> linked libraries I build." > > Also, I do not have to specify full paths to libraries I link to beca

Re: [CMake] Globally Set Target Properties

2011-11-07 Thread Schuchard, Matthew
Thanks for the response. Actually, that is what I want to do: "> Specifically, I need to remove the prefix "lib" from all statically > linked libraries I build." Also, I do not have to specify full paths to libraries I link to because of the CMAKE_STATIC_LIBRARY_PREFIX command I had mentioned i

Re: [CMake] Globally Set Target Properties

2011-11-07 Thread Michael Wild
On 11/07/2011 04:15 PM, Schuchard, Matthew wrote: > I am trying to globally set target properties for an entire configuration. > > Specifically, I need to remove the prefix β€œlib” from all statically > linked libraries I build. > > > > I already used CMAKE_STATIC_LIBRARY_PREFIX β€œβ€ such that all

[CMake] Globally Set Target Properties

2011-11-07 Thread Schuchard, Matthew
I am trying to globally set target properties for an entire configuration. Specifically, I need to remove the prefix "lib" from all statically linked libraries I build. I already used CMAKE_STATIC_LIBRARY_PREFIX "" such that all libraries I explicitly link to will not have CMake search for libra