Re: [CMake] Problem with CHECK_FUNCTION_EXISTS and strcasecmp

2010-03-14 Thread Michael Wild
On 03/13/2010 01:03 PM, Mateusz Loskot wrote: Michael Surette wrote: I am updating the CMake build files for a cross-platform project. One of the tests is for strcasecmp for which I use CHECK_FUNCTION_EXISTS. If it's not found the code generates its own function by that name. This

[CMake] ADD_CUSTOM_COMMAND() without anything else: dangling dependency?

2010-03-14 Thread joerg . faschingbauer
Hi, I use ADD_CUSTOM_COMMAND() to generate a header file in one directory. That header file is included from a source file in another directory, which is then aggregated into a library. The dependency is stated via an OBJECT_DEPENDS property. Like, in one directory 'generated-headers',

Re: [CMake] ADD_CUSTOM_COMMAND() without anything else: dangling dependency?

2010-03-14 Thread Alexander Neundorf
On Sunday 14 March 2010, joerg.faschingba...@aon.at wrote: Hi, I use ADD_CUSTOM_COMMAND() to generate a header file in one directory. That header file is included from a source file in another directory, which is then aggregated into a library. The dependency is stated via an OBJECT_DEPENDS

[CMake] CC, CXX, and FC environment variable regression in 2.8.1-rc4

2010-03-14 Thread Alan W. Irwin
I often build with export CC='gcc -g -fvisibility=hidden export CXX='g++ -g -fvisibility=hidden' and export FC='gfortran -g -fvisibility=hidden' but recently this has quit working because CMake fails to add the necessary -fPIC flag to shared library builds. Sorry I don't know the last CMake

Re: [CMake] CC, CXX, and FC environment variable regression in 2.8.1-rc4

2010-03-14 Thread Bill Hoffman
Alan W. Irwin wrote: I often build with export CC='gcc -g -fvisibility=hidden export CXX='g++ -g -fvisibility=hidden' and export FC='gfortran -g -fvisibility=hidden' but recently this has quit working because CMake fails to add the necessary -fPIC flag to shared library builds. Sorry I

Re: [CMake] CC, CXX, and FC environment variable regression in 2.8.1-rc4

2010-03-14 Thread Alan W. Irwin
On 2010-03-14 15:28-0400 Bill Hoffman wrote: Perhaps adding the flags causes the compiler to be mis-identified somehow. Can you run with the gcc -g -fvisibility=hidden, and without on a very simple C only project. Then send me the binary trees from both. I am suspecting there will be some

Re: [CMake] Problem with CHECK_FUNCTION_EXISTS and strcasecmp

2010-03-14 Thread Michael Surette
On 03/14/2010 06:14 AM, Michael Wild wrote: On 03/13/2010 01:03 PM, Mateusz Loskot wrote: Michael Surette wrote: I am updating the CMake build files for a cross-platform project. One of the tests is for strcasecmp for which I use CHECK_FUNCTION_EXISTS. If it's not found the code generates