Re: [CMake] Compile same source file with different flags into the same library

2009-12-08 Thread Hendrik Sattler
Zitat von Matthias Moeller : I try to write a cmake file for some external library (from the sparse suite). In the provided makefile a single source file is compiled twice with different compiler flags, e.g., $(C) -DDINT -c ../Source/amd_aat.c -o amd_i_aat.o $(C) -DDLONG -c ../Source/amd_aat.c

Re: [CMake] Compile same source file with different flags into the same library

2009-12-08 Thread Eric Noulard
2009/12/8 Matthias Moeller : > I try to write a cmake file for some external library (from the sparse > suite). > In the provided makefile a single source file is compiled twice with > different compiler flags, e.g., > > $(C) -DDINT -c ../Source/amd_aat.c -o amd_i_aat.o > $(C) -DDLONG -c ../Source/

[CMake] Compile same source file with different flags into the same library

2009-12-08 Thread Matthias Moeller
I try to write a cmake file for some external library (from the sparse suite). In the provided makefile a single source file is compiled twice with different compiler flags, e.g., $(C) -DDINT -c ../Source/amd_aat.c -o amd_i_aat.o $(C) -DDLONG -c ../Source/amd_aat.c -o amd_l_aat.o and finally all