[CMake] making two targets with similar names

2007-08-10 Thread Juan Sanchez
I am having the following issue. I want to create both a libFOO.a and a libFOO.so. Note that the libFOO.so is composed of more sources than the libFOO.a. I use OUTPUT_NAME in order so they have the same name. I can make the FOOSTATIC, libFOO.a, target, just fine. However, making the

Re: [CMake] making two targets with similar names

2007-08-10 Thread Bill Hoffman
Juan Sanchez wrote: I am having the following issue. I want to create both a libFOO.a and a libFOO.so. Note that the libFOO.so is composed of more sources than the libFOO.a. I use OUTPUT_NAME in order so they have the same name. I can make the FOOSTATIC, libFOO.a, target, just fine.

Re: [CMake] making two targets with similar names

2007-08-10 Thread Juan Sanchez
Hi Bill, Thanks, it works when I do this in SET_TARGET_PROPERTIES. Juan Juan Sanchez wrote: Hi Bill, What's the proper syntax? Setting the variable in CMakeLists.txt doesn't work. Neither does setting it in my initial Cache file (loaded with cmake -C). SET (CLEAN_DIRECT_OUTPUT 1 CACHE

Re: [CMake] making two targets with similar names

2007-08-10 Thread Juan Sanchez
Hi Bill, What's the proper syntax? Setting the variable in CMakeLists.txt doesn't work. Neither does setting it in my initial Cache file (loaded with cmake -C). SET (CLEAN_DIRECT_OUTPUT 1 CACHE STRING 1) Thanks, Juan Bill Hoffman wrote: Juan Sanchez wrote: I am having the following issue.

Re: [CMake] making two targets with similar names

2007-08-10 Thread Philip Lowman
Juan Sanchez wrote: I am having the following issue. I want to create both a libFOO.a and a libFOO.so. Note that the libFOO.so is composed of more sources than the libFOO.a. I use OUTPUT_NAME in order so they have the same name. I can make the FOOSTATIC, libFOO.a, target, just fine.