diff --git a/Classification/examples/Classification/CMakeLists.txt b/Classification/examples/Classification/CMakeLists.txt index 8a1f5256017..b5c479b8b22 100644 --- a/Classification/examples/Classification/CMakeLists.txt +++ b/Classification/examples/Classification/CMakeLists.txt @@ -83,7 +83,7 @@ find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater) if (EIGEN3_FOUND) include( ${EIGEN3_USE_FILE} ) else() - message(STATUS "NOTICE: Eigen not found, no example will be compiled.") + message(STATUS "NOTICE: Classification requires Eigen, which was not found. No example will be compiled.") return() endif() @@ -92,7 +92,12 @@ if (Boost_SERIALIZATION_FOUND AND Boost_IOSTREAMS_FOUND) ${Boost_SERIALIZATION_LIBRARY} ${Boost_IOSTREAMS_LIBRARY}) else() - message(STATUS "NOTICE: Boost Serialization or IO Streams not found, no example will be compiled.") + if (NOT Boost_SERIALIZATION_FOUND) + message(STATUS "NOTICE: Classification requires Boost Serialization, which was not found. No example will be compiled.") + endif() + if (NOT Boost_IOSTREAMS_FOUND) + message(STATUS "NOTICE: Classification requires Boost IO Streams, which was not found. No example will be compiled.") + endif() return() endif() @@ -101,7 +106,7 @@ if( WIN32 ) set(classification_linked_libraries ${classification_linked_libraries} ${Boost_ZLIB_LIBRARY}) else() - message(STATUS "NOTICE: Boost ZLIB not found, no example will be compiled.") + message(STATUS "NOTICE: Classification requires Boost ZLIB, which was not found. No example will be compiled.") return() endif() endif() diff --git a/Classification/test/Classification/CMakeLists.txt b/Classification/test/Classification/CMakeLists.txt index 66e6ffafae8..39a70153d52 100644 --- a/Classification/test/Classification/CMakeLists.txt +++ b/Classification/test/Classification/CMakeLists.txt @@ -70,7 +70,12 @@ if (Boost_SERIALIZATION_FOUND AND Boost_IOSTREAMS_FOUND) ${Boost_SERIALIZATION_LIBRARY} ${Boost_IOSTREAMS_LIBRARY}) else() - message(STATUS "NOTICE: Boost Serialization or IO Streams not found, no test will be compiled.") + if (NOT Boost_SERIALIZATION_FOUND) + message(STATUS "NOTICE: Classification requires Boost Serialization, which was not found. No test will be compiled.") + endif() + if (NOT Boost_IOSTREAMS_FOUND) + message(STATUS "NOTICE: Classification requires Boost IO Streams, which was not found. No test will be compiled.") + endif() return() endif() @@ -79,7 +84,7 @@ if( WIN32 ) set(classification_linked_libraries ${classification_linked_libraries} ${Boost_ZLIB_LIBRARY}) else() - message(STATUS "NOTICE: Boost ZLIB not found, no example will be compiled.") + message(STATUS "NOTICE: Classification requires Boost ZLIB, which was not found. No test will be compiled.") return() endif() endif()