[CMake] Check_include_file is supposed make a definition?

2015-06-10 Thread J Decker
CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H)

is this supposed to create some sort of ADD_DEFINITION( -DHAVE_STDINT_H) ?

if not what else do I have to do to make that work?
-- 

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

Re: [CMake] Check_include_file is supposed make a definition?

2015-06-10 Thread Johannes Zarl-Zierl
On Wednesday 10 June 2015 00:48:06 J Decker wrote:
 CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H)
 
 is this supposed to create some sort of ADD_DEFINITION( -DHAVE_STDINT_H) ?

No.

 if not what else do I have to do to make that work?

IF(HAVE_STDINT_H)
  ADD_DEFINITION(HAVE_STDINT_H)
ENDIF()

If you want to do this always, you can write a wrapper function, of course...

Cheers,
  Johannes
-- 

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