fix bug #499: the image was missing because of a dependency issue when building/executing the "special" examples

This commit is contained in:
Gael Guennebaud 2012-08-27 11:11:25 +02:00
parent aa1aa36d6d
commit 75435079ca
4 changed files with 6 additions and 7 deletions

View File

@ -496,8 +496,8 @@ class SuperLU : public SuperLUBase<_MatrixType,SuperLU<_MatrixType> >
SuperLU(const MatrixType& matrix) : Base() SuperLU(const MatrixType& matrix) : Base()
{ {
Base::init(); init();
compute(matrix); Base::compute(matrix);
} }
~SuperLU() ~SuperLU()
@ -833,7 +833,7 @@ class SuperILU : public SuperLUBase<_MatrixType,SuperILU<_MatrixType> >
SuperILU(const MatrixType& matrix) : Base() SuperILU(const MatrixType& matrix) : Base()
{ {
init(); init();
compute(matrix); Base::compute(matrix);
} }
~SuperILU() ~SuperILU()

View File

@ -34,6 +34,7 @@ set(examples_targets "")
set(snippets_targets "") set(snippets_targets "")
add_definitions("-DEIGEN_MAKING_DOCS") add_definitions("-DEIGEN_MAKING_DOCS")
add_custom_target(all_examples)
add_subdirectory(examples) add_subdirectory(examples)
add_subdirectory(special_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 remove eigen-doc/eigen-doc.tgz
COMMAND ${CMAKE_COMMAND} -E tar cvfz eigen-doc/eigen-doc.tgz eigen-doc COMMAND ${CMAKE_COMMAND} -E tar cvfz eigen-doc/eigen-doc.tgz eigen-doc
COMMAND ${CMAKE_COMMAND} -E rename eigen-doc html COMMAND ${CMAKE_COMMAND} -E rename eigen-doc html
WORKING_DIRECTORY ${Eigen_BINARY_DIR}/doc WORKING_DIRECTORY ${Eigen_BINARY_DIR}/doc)
VERBATIM)
add_dependencies(doc doc-eigen-prerequisites doc-unsupported-prerequisites) add_dependencies(doc doc-eigen-prerequisites doc-unsupported-prerequisites)

View File

@ -1,7 +1,5 @@
file(GLOB examples_SRCS "*.cpp") file(GLOB examples_SRCS "*.cpp")
add_custom_target(all_examples)
foreach(example_src ${examples_SRCS}) foreach(example_src ${examples_SRCS})
get_filename_component(example ${example_src} NAME_WE) get_filename_component(example ${example_src} NAME_WE)
add_executable(${example} ${example_src}) add_executable(${example} ${example_src})

View File

@ -17,4 +17,5 @@ if(QT4_FOUND)
COMMAND Tutorial_sparse_example COMMAND Tutorial_sparse_example
ARGS ${CMAKE_CURRENT_BINARY_DIR}/../html/Tutorial_sparse_example.jpeg ARGS ${CMAKE_CURRENT_BINARY_DIR}/../html/Tutorial_sparse_example.jpeg
) )
add_dependencies(all_examples Tutorial_sparse_example)
endif(QT4_FOUND) endif(QT4_FOUND)