[CMake] [PATCH] building Boost.Python fails

Claudio Bley b_l_e_y at ml1.net
Wed Sep 16 08:51:51 EDT 2009


Hi.

With Boost 1.40.0 and using CMake 2.6.4 building the Python library
failed because the compiler could not find some header of the parameter
library. (sorry, don't have the compiler message at hand).

This happend after I ran "make modularize && make":

,----
| [ 34%] Building CXX object libs/python/src/CMakeFiles/boost_python-mt-shared.dir/object/inheritance.cpp.obj
| inheritance.cpp
| C:\build\vc90nmake\boost_1_40_0\libs\graph\include\boost/graph/named_function_params.hpp(15)
| : fatal error C1083: Datei (Include) kann nicht geöffnet werden: "boost/parameter/name.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.
`----

After specifying the parameter library as a dependency for Boost.Graph
it compiled without problems.

Regards,
Claudio

--- libs/graph/module.cmake.orig	2009-06-08 17:45:46.740488000 +0200
+++ libs/graph/module.cmake	2009-09-16 14:44:52.656250000 +0200
@@ -1,4 +1,5 @@
-boost_module(graph DEPENDS property_map tuple multi_index any random)
+boost_module(graph DEPENDS property_map tuple multi_index any random parameter)
 boost_module(graph_mpi DEPENDS mpi graph)
 
 # any is there because of the dependency on boost/property_map/dynamic_property_map.hpp
+# parameter is there because named_function_params.hpp includes parameter/name.hpp





More information about the CMake mailing list