From 75435079caa4213f86ccb57fe70ceb56c8e62ad1 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 27 Aug 2012 11:11:25 +0200 Subject: fix bug #499: the image was missing because of a dependency issue when building/executing the "special" examples --- Eigen/src/SuperLUSupport/SuperLUSupport.h | 6 +++--- doc/CMakeLists.txt | 4 ++-- doc/examples/CMakeLists.txt | 2 -- doc/special_examples/CMakeLists.txt | 1 + 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 11fb014dd..d8a54e18c 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -496,8 +496,8 @@ class SuperLU : public SuperLUBase<_MatrixType,SuperLU<_MatrixType> > SuperLU(const MatrixType& matrix) : Base() { - Base::init(); - compute(matrix); + init(); + Base::compute(matrix); } ~SuperLU() @@ -833,7 +833,7 @@ class SuperILU : public SuperLUBase<_MatrixType,SuperILU<_MatrixType> > SuperILU(const MatrixType& matrix) : Base() { init(); - compute(matrix); + Base::compute(matrix); } ~SuperILU() diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index ad3113344..33bc1d45d 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -34,6 +34,7 @@ set(examples_targets "") set(snippets_targets "") add_definitions("-DEIGEN_MAKING_DOCS") +add_custom_target(all_examples) add_subdirectory(examples) add_subdirectory(special_examples) @@ -74,7 +75,6 @@ add_custom_target(doc ALL COMMAND ${CMAKE_COMMAND} -E remove eigen-doc/eigen-doc.tgz COMMAND ${CMAKE_COMMAND} -E tar cvfz eigen-doc/eigen-doc.tgz eigen-doc COMMAND ${CMAKE_COMMAND} -E rename eigen-doc html - WORKING_DIRECTORY ${Eigen_BINARY_DIR}/doc - VERBATIM) + WORKING_DIRECTORY ${Eigen_BINARY_DIR}/doc) add_dependencies(doc doc-eigen-prerequisites doc-unsupported-prerequisites) diff --git a/doc/examples/CMakeLists.txt b/doc/examples/CMakeLists.txt index 13ec0c123..71b272a15 100644 --- a/doc/examples/CMakeLists.txt +++ b/doc/examples/CMakeLists.txt @@ -1,7 +1,5 @@ file(GLOB examples_SRCS "*.cpp") -add_custom_target(all_examples) - foreach(example_src ${examples_SRCS}) get_filename_component(example ${example_src} NAME_WE) add_executable(${example} ${example_src}) diff --git a/doc/special_examples/CMakeLists.txt b/doc/special_examples/CMakeLists.txt index eeeae1d2a..138a2f6ef 100644 --- a/doc/special_examples/CMakeLists.txt +++ b/doc/special_examples/CMakeLists.txt @@ -17,4 +17,5 @@ if(QT4_FOUND) COMMAND Tutorial_sparse_example ARGS ${CMAKE_CURRENT_BINARY_DIR}/../html/Tutorial_sparse_example.jpeg ) + add_dependencies(all_examples Tutorial_sparse_example) endif(QT4_FOUND) -- cgit v1.2.3