Am Donnerstag, 5. Februar 2015, 21:12:36 schrieb Alexander Koeppe: > Hi Cmake user list, > > I have a problem that I need to check the presence of a certain symbol > in a header file using CHECK_SYMBOL_EXISTS which has several dependencies. > > The check fails because the header file also contains data types that > require an additional header file to be included by the test program. It > looks like CHECK_SYMBOL_EXISTS is not capable doing that.
set(CMAKE_REQUIRED_INCLUDES some_header.h other/header.h) check_symbol_exists(...) Eike
signature.asc
Description: This is a digitally signed message part.
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
