[CMake] CHECK_FUNCTION_EXISTS(UuidCreate HAVE_UUIDCREATE)
Bill Hoffman
bill.hoffman at kitware.com
Sun May 4 14:20:16 EDT 2008
Mathieu Malaterre wrote:
> On Sun, May 4, 2008 at 6:52 PM, Mathieu Malaterre
> <mathieu.malaterre at gmail.com> wrote:
>> On Sun, May 4, 2008 at 6:32 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>> > Mathieu Malaterre wrote:
>> >
>> > > Hi,
>> > >
>> >
>> >
>> > > Anyone sees my mistake ?
>> > >
>> > > Thanks,
>> > >
>> > Try --debug-trycompile and look at the makefile generated.
>> >
>> > -Bill
>> >
>> >
>>
>> This thing ?
>>
>> cat CMakeFiles/CMakeTmp/CMakeFiles/cmTryCompileExec.dir/build.make
>> ...
>> cmTryCompileExec.exe: CMakeFiles\cmTryCompileExec.dir\CheckFunctionExists.obj
>> cmTryCompileExec.exe: CMakeFiles\cmTryCompileExec.dir\build.make
>> @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold
>> "Linking C executable cmTryCompileExec.exe"
>> $(CMAKE_COMMAND) -P CMakeFiles\cmTryCompileExec.dir\cmake_clean_target.cmake
>>
>> C:\PROGRA~1\MIA4C6~1\bin\cl.exe /nologo @<<
>> /DWIN32 /D_WINDOWS /W3 /Zm1000 -DCHECK_FUNCTION_EXISTS=UuidCreate
>> /MT /O2 /Ob2 /D NDEBUG $(cmTryCompileExec_OBJECTS)
>> $(cmTryCompileExec_EXTERNAL_OBJECTS) /FecmTryCompileExec.exe
>> /FdC:\cygwin\home\mmalaterre\Projects\gdcm\release-cl2\CMakeFiles\CMakeTmp\cmTryCompileExec.pdb
>> -link /version:0.0 /STACK:10000000 /machine:I386 /INCREMENTAL:NO
>> /subsystem:console rpcrt4.lib kernel32.lib user32.lib gdi32.lib
>> winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
>> oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
>> <<
>> ..
>>
>> I do not see anything wrong ...
>
> If this help, depends also sees the symbol...
>
> http://gdcm.sourceforge.net/UuidCreate.PNG
>
>
Try running the commands by hand using that as a starting point. It
maybe the case of a missing header file and the symbol is a #define or
something like that.
-Bill
More information about the CMake
mailing list