[CMake] Recompile with different flags
Adam Weiss
cseadam+cmake at gmail.com
Tue Jan 20 08:05:10 EST 2009
Due to proprietary information issues I can't go into detail, but I
can give a vague description.
Our company started in Ada now is transitioning to C++. The older
employees don't really want to learn and tend to code the C++ in the
style of Ada and avoid using any of the features like polymorphic
dispatch, templates, or abstract interfaces. The code that is being
compiled into 2 libraries and 2 executables need to be built by a
third party without too much change to their current gmake procedure.
The other problem is that I was told to try to convert to cmake with a
few code changes as possible (except for the obvious additions of
CMakeLists.txt files). So far everything has been great. Then I
found in the current make file that they recompile this set of files
twice, once with a flag set and once without.
The file structure is horrendous, the files themselves are full of
things like this, and there are no formal test procedures. Some days
I wish I could just sit down and rewrite it all.
So that's my venting for today :) Hope that sheds some light on
things but wasn't too much.
P.S. The set_target_properties with COMPILE_FLAGS seems to be working, thanks!
-Adam
On Tue, Jan 20, 2009 at 5:04 AM, Mike Arthur <mike at mikearthur.co.uk> wrote:
> On Monday 19 January 2009 20:02:34 Adam Weiss wrote:
>> I have a set of source files that are compiled and built into a library.
>> Works great.
>> Now I want to recompile those same files with a compiler flag added into
>> another library. Don't ask, this is how it has to be.
> Purely for intellectual curiosity, why does this have to be? No worries if you
> don't have time to reply to this, I'm just interested by other peoples
> configurations :)
>
> --
> Cheers,
> Mike Arthur
> http://mikearthur.co.uk/
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
More information about the CMake
mailing list