[CMake] check_c_source_compiles question

Adolfo Rodríguez Tsouroukdissian dofo79 at gmail.com
Fri May 7 03:05:04 EDT 2010


On Fri, May 7, 2010 at 12:46 AM, Steven Wilson <
steven.wesley.wilson at gmail.com> wrote:

> The following variables exist for passing parameters to
> check_c_source_compiles:
>
> CMAKE_REQUIRED_FLAGS
> CMAKE_REQUIRED_DEFINITIONS
> CMAKE_REQUIRED_INCLUDES
> CMAKE_REQUIRED_LIBRARIES
>
> Why do we not have CMAKE_REQUIRED_LINK_DIRECTORIES or some such equivalent?
>
>

Don't know about that, but an alternative solution would be to use fully
qualified paths when populating CMAKE_REQUIRED_LIBRARIES

HTH

Adolfo


> On Unix I can make the check_c_source_compiles work by appending
> -L/path/to/library to the value of CMAKE_REQUIRED_FLAGS.   On Windows, this
> trick doesn't (with the correct compiler flags) seem to work.   I end up
> getting errors about missing source file names, etc when
> check_c_source_compiles runs.
>
> How can I reliably pass the list of library directories?
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
Adolfo Rodríguez Tsouroukdissian, Ph. D.

Robotics engineer
PAL ROBOTICS S.L
http://www.pal-robotics.com
Tel. +34.93.414.53.47
Fax.+34.93.209.11.09
AVISO DE CONFIDENCIALIDAD: Este mensaje y sus documentos adjuntos, pueden
contener información privilegiada y/o confidencial que está dirigida
exclusivamente a su destinatario. Si usted recibe este mensaje y no es el
destinatario indicado, o el empleado encargado de su entrega a dicha
persona, por favor, notifíquelo inmediatamente y remita el mensaje original
a la dirección de correo electrónico indicada. Cualquier copia, uso o
distribución no autorizados de esta comunicación queda estrictamente
prohibida.

CONFIDENTIALITY NOTICE: This e-mail and the accompanying document(s) may
contain confidential information which is privileged and intended only for
the individual or entity to whom they are addressed.  If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution or use of this e-mail and/or accompanying document(s) is
strictly prohibited.  If you have received this e-mail in error, please
immediately notify the sender at the above e-mail address.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100507/bce0ac00/attachment.htm>


More information about the CMake mailing list