cmake: highlight warning and error messages

Change-Id: Id4b73368382b5e78c138987fe092429af5cb0afd
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2018-08-18 14:36:57 +02:00
parent 74dfaa665b
commit 9f540ed348
4 changed files with 31 additions and 9 deletions

View File

@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
message("-- Looking for mbedTLS")
message(STATUS "Looking for mbedTLS")
find_path(MBEDTLS_INCLUDE_DIR NAMES mbedtls/ssl.h)
find_library(MBEDTLS_LIB1 NAMES mbedtls)
find_library(MBEDTLS_LIB2 NAMES mbedx509)
@ -23,8 +23,8 @@ if(MBEDTLS_INCLUDE_DIR AND MBEDTLS_LIB)
include_directories(${MBEDTLS_INCLUDE_DIR})
add_vpp_plugin(tlsmbedtls_plugin tls_mbedtls.c)
target_link_libraries(tlsmbedtls_plugin ${MBEDTLS_LIB})
message("-- Found mbedTLS in ${MBEDTLS_INCLUDE_DIR}")
message(STATUS "Found mbedTLS in ${MBEDTLS_INCLUDE_DIR}")
else()
message("-- mbedTLS not found - tlsmbedtls_plugin disabled")
message(WARNING "-- mbedTLS not found - tlsmbedtls_plugin disabled")
endif()