|
Boost Interest : |
Subject: [Boost-cmake] [PATCH] error building the inspect program
From: Claudio Bley (b_l_e_y_at_[hidden])
Date: 2009-09-16 07:50:46
Hi.
I received the following error when trying to build Boost using CMake
2.6.4 with nmake:
,----
| [ 99%] Building CXX object tools/inspect/CMakeFiles/inspect.dir/inspect.cpp.obj
| inspect.cpp
| C:\build\vc90nmake\boost_1_40_0\tools\inspect\inspect.cpp(24) : fatal error
C1083: file (Include) could not be opened: "boost/shared_ptr.hpp": No such
file or directory
| NMAKE : fatal error U1077: "C:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe": Rückgabe-Code "0x2"
| Stop.
| NMAKE : fatal error U1077: ""C:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"": return-Code "0x2"
| Stop.
| NMAKE : fatal error U1077: ""C:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"": return-Code "0x2"
| Stop.
`----
The following patch solves this problem for me:
--- tools/inspect/CMakeLists.txt.orig 2009-09-16 13:38:03.234375000 +0200
+++ tools/inspect/CMakeLists.txt 2009-09-16 13:38:29.359375000 +0200
@@ -7,6 +7,7 @@
boost_tool_project(Inspect
DESCRIPTION "Boost inspector tool")
+boost_tool_dependencies( BOOST_DEPENDS filesystem regex test )
boost_add_executable(inspect
----------------------------------------------------------------------
Regards,
Claudio