[CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

Brad King brad.king at kitware.com
Thu Jun 1 13:59:38 EDT 2006


Brandon J. Van Every wrote:
> I have investigated, and I'm not convinced that the -ldl is coming from 
> my code.  My code is:
> 
> CHECK_INCLUDE_FILE(dl.h HAVE_DL_H)
> IF(HAVE_DL_H)
>   ADD_DEFINITIONS(-DHAVE_DL_H)
>   SET(EXTRA_LIBS ${EXTRA_LIBS} ldl)
> ENDIF(HAVE_DL_H)
> 
> There is no dl.h on any hard drive of my system.  Which is to be 
> expected, as it's a Linux thing.  I think the -ldl more likely from 
> building CMake 2.4.2 on Cygwin incorrectly.  I will await your canonical 
> version and see if the problem goes away.

What does HAVE_DL_H say in your cache?  If you remove the entry manually 
from the file does it come back with "yes"?

-Brad


More information about the CMake mailing list