[CMake] configure.h.cmake generation??
hsanson
hsanson at gmail.com
Wed May 14 02:12:32 EDT 2008
I am following the instructions in this page to check for some header
files and fucntions
"http://www.cmake.org/Wiki/CMake_HowToDoPlatformChecks" but so far it is
not clear, at least to me, how the configure.h.cmake file mentioned is
created. If I have to create it manually it beats the utility of CMake
as I am checking for several header files and functions.
My CMakeLists.txt file looks like
CHECK_INCLUDE_FILES(header.h HAVE_HEADER_H)
CHECK_INCLUDE_FILES(header1.h HAVE_HEADER1_H)
CHECK_INCLUDE_FILES(header2.h HAVE_HEADER2_H)
CHECK_INCLUDE_FILES(header3.h HAVE_HEADER3_H)
CHECK_INCLUDE_FILES(header4.h HAVE_HEADER4_H)
CHECK_INCLUDE_FILES(header5.h HAVE_HEADER5_H)
... repeat a lot
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
${CMAKE_CURRENT_SOURCE_DIR}/config.h)
This runs perfect until CONFIGURE_FILE where CMake complais that
config.h.cmake does not exist and is true because that file is not
created anywhere I can see.
Any ideas on how to generate the config.h.cmake and ultimately the
config.h file are appreciated.
Horacio
More information about the CMake
mailing list