[CMake] Can't get include() to work!
Robert Dailey
rcdailey at gmail.com
Wed Dec 3 15:01:48 EST 2008
On Wed, Dec 3, 2008 at 1:55 PM, Bill Hoffman <bill.hoffman at kitware.com>wrote:
> Did you try the --trace? Maybe a spelling error? Please post a complete
> small example that shows the problem if none of that helps.
Below is the relevant portion of the output from --trace. It's a bit hard to
read, but notice that after the include( utility.cmake ) line there is no
code included. Odd.
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/CMakeLists.txt(6): include(include_directories.cmake
)
C:/IT/work/jewett/vfx/include_directories.cmake(1): set(include_directories
${third_party}/.. ${thi
rd_party}/boost/1_36_0 ${third_party}/boost/sandbox/channel
${third_party}/boost/sandbox/chrono ${th
ird_party}/boost/sandbox/dataflow ${third_party}/boost/sandbox/dispatcher
${third_party}/boost/sandb
ox/extension ${third_party}/boost/sandbox/flyweight
${third_party}/boost/sandbox/move ${third_party}
/boost/sandbox/tree ${third_party}/boost/sandbox/unique_ptr
${third_party}/cg/include ${third_party}
/Eigen ${third_party}/EMotionFX/Source ${third_party}/fmod/include
${third_party}/FreeImage ${third_
party}/glew ${third_party}/glib/include ${third_party}/glibmm/include
${third_party}/glut ${third_pa
rty}/iconv/include ${third_party}/libRocket/include
${third_party}/libxml2/include ${third_party}/li
bxml++/include ${third_party}/OpenSSL/include ${third_party}/python/inc
${third_party}/tbb/21_200806
05oss/include ${third_party}/VisualLeakDetector/include
${third_party}/zlib/include )
C:/IT/work/jewett/vfx/CMakeLists.txt(7): include(link_directories.cmake )
C:/IT/work/jewett/vfx/link_directories.cmake(1): set(link_directories
${third_party}/boost/1_36_0/l
ib ${third_party}/cg/lib ${third_party}/EMotionFX/Bin
${third_party}/EMotionFX/Core/Bin ${third_part
y}/fmod/lib ${third_party}/FreeImage ${third_party}/glew
${third_party}/glib/lib ${third_party}/glib
mm/lib ${third_party}/glut ${third_party}/iconv/lib
${third_party}/libRocket/bin ${third_party}/libx
ml2/lib ${third_party}/libxml++/lib ${third_party}/python/lib
${third_party}/zlib/lib )
C:/IT/work/jewett/vfx/CMakeLists.txt(11): macro(create_test project_name )
C:/IT/work/jewett/vfx/CMakeLists.txt(22): macro(component project_name )
C:/IT/work/jewett/vfx/CMakeLists.txt(43): macro(library_component
project_name )
C:/IT/work/jewett/vfx/CMakeLists.txt(60): macro(executable_component
project_name libraries )
C:/IT/work/jewett/vfx/CMakeLists.txt(69): add_subdirectory(messenger )
C:/IT/work/jewett/vfx/messenger/CMakeLists.txt(1):
library_component(messenger )
CMake Error at vfx/CMakeLists.txt:44 (parse_arguments):
Unknown CMake command "parse_arguments".
Call Stack (most recent call first):
vfx/messenger/CMakeLists.txt:1 (library_component)
-- Configuring incomplete, errors occurred!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081203/650e1d05/attachment.htm>
More information about the CMake
mailing list