[CMake] Can't get include() to work!

Bill Hoffman bill.hoffman at kitware.com
Wed Dec 3 15:33:31 EST 2008


Robert Dailey wrote:

> lol. I actually removed it on accident. I can't seem to get this right, 
> sorry. Below is the trace output with the message() back in:
> 
> C:/IT/work/jewett/CMakeLists.txt(1):  cmake_minimum_required(VERSION 2.6 )
> C:/IT/work/jewett/CMakeLists.txt(5):  set(third_party 
> ${CMAKE_CURRENT_SOURCE_DIR}/third_party )
> C:/IT/work/jewett/CMakeLists.txt(7):  add_subdirectory(vfx )
> C:/IT/work/jewett/vfx/CMakeLists.txt(1):  cmake_minimum_required(VERSION 
> 2.6 )
> C:/IT/work/jewett/vfx/CMakeLists.txt(3):  project(vfx )
> C:/IT/work/jewett/vfx/CMakeLists.txt(5):  include(utility.cmake )
> C:/IT/work/jewett/vfx/utility.cmake(1):  message(utility.cmake loaded )
> utility.cmake loaded
> C:/IT/work/jewett/vfx/CMakeLists.txt(6):  
> include(include_directories.cmake )


Seems to be the only thing in the file.  Maybe it would help if you 
posted utility.cmake...

-Bill


More information about the CMake mailing list