Re: [CMake] Add linker command file to object files

2011-07-24 Thread Michael Hertling
On 07/20/2011 02:19 PM, Florian Reinhard wrote: > Hi Michael, > > Thank you for that long and well explained resonse! > > I just gave your EXTERNAL_OBJECT approach with a patched cmake version a try. > > Unfortunately this is just almost a solution. That way the linker.cmd > appears in the list

Re: [CMake] test linker flags?

2011-07-24 Thread Michael Hertling
On 07/15/2011 03:15 AM, Clifford Yapp wrote: > Is there a way to test flags supplied to the linker > (CMAKE_SHARED_LINKER_FLAGS) in the same way we can test compiler flags > with CHECK_C_COMPILER_FLAG? I'd like to check if -Wl,--no-undefined > works or not before using it. > > Cheers, > CY You m

Re: [CMake] Using CMake to interface with non-CMake libraries

2011-07-24 Thread Andreas Naumann
Hey Zoey, I don't know anything about SOLID, but the errormessage means, your program needs to be linked against a library. You could ask cmake to look for your SOLID library: find_library(SOLID_LIBRARY solid) if(NOT SOLID_LIBRARY) message(ERROR "please specify the library for SOLID") endif(

[CMake] Using CMake to interface with non-CMake libraries

2011-07-24 Thread Zoey McCarthy
Hello everyone, I am new to using CMake and I am trying to compile a program that uses two libraries, one of which needs to be built using CMake, and the other, that utilizes its own build system(the Makefiles were generated using ./configure). The two libraries are CGAL and SOLID (for collisi