Update CMakeLists.txt messages to trigger testsuite missing requirement detection

This commit is contained in:
Simon Giraudot 2018-06-18 15:38:26 +02:00
parent 4ceb1b3f39
commit 241bbdb16a
2 changed files with 15 additions and 5 deletions

View File

@ -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()

View File

@ -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()