Hi.
It should be sufficient to just test presence of header <camlib.h>.
It works for me on kfreebsd-i386 with: LIST(APPEND SCG_LIBS "scg") INCLUDE(CheckIncludeFiles) CHECK_INCLUDE_FILES("stdio.h;camlib.h" HAVE_CAMLIB_H) if(HAVE_CAMLIB_H) ADD_DEFINITIONS(-DHAVE_CAMLIB_H) LIST(APPEND SCG_LIBS "cam") LIST(APPEND SCG_SELF_LIBS "cam") endif(HAVE_CAMLIB_H) SET(CMAKE_REQUIRED_LIBRARIES ) Thanks Petr -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]