- Improve CMake messages for zlib/jpeg/bzip2/gme.

* Report the include location if they're external libraries;
* Remove unneeded include location messages from zipdir.
This commit is contained in:
Edoardo Prezioso 2016-02-20 11:38:30 +01:00
parent d1502b1086
commit 85fbcf0428
2 changed files with 5 additions and 8 deletions

View file

@ -197,7 +197,7 @@ elseif( MSVC )
endif() endif()
if( ZLIB_FOUND AND NOT FORCE_INTERNAL_ZLIB ) if( ZLIB_FOUND AND NOT FORCE_INTERNAL_ZLIB )
message( STATUS "Using system zlib" ) message( STATUS "Using system zlib, includes found at ${ZLIB_INCLUDE_DIR}" )
else() else()
message( STATUS "Using internal zlib" ) message( STATUS "Using internal zlib" )
add_subdirectory( zlib ) add_subdirectory( zlib )
@ -207,7 +207,7 @@ else()
endif() endif()
if( JPEG_FOUND AND NOT FORCE_INTERNAL_JPEG ) if( JPEG_FOUND AND NOT FORCE_INTERNAL_JPEG )
message( STATUS "Using system jpeg library" ) message( STATUS "Using system jpeg library, includes found at ${JPEG_INCLUDE_DIR}" )
else() else()
message( STATUS "Using internal jpeg library" ) message( STATUS "Using internal jpeg library" )
add_subdirectory( jpeg-6b ) add_subdirectory( jpeg-6b )
@ -217,7 +217,7 @@ else()
endif() endif()
if( BZIP2_FOUND AND NOT FORCE_INTERNAL_BZIP2 ) if( BZIP2_FOUND AND NOT FORCE_INTERNAL_BZIP2 )
message( STATUS "Using system bzip2 library" ) message( STATUS "Using system bzip2 library, includes found at ${BZIP2_INCLUDE_DIR}" )
else() else()
message( STATUS "Using internal bzip2 library" ) message( STATUS "Using internal bzip2 library" )
add_subdirectory( bzip2 ) add_subdirectory( bzip2 )
@ -227,7 +227,7 @@ else()
endif() endif()
if( GME_FOUND AND NOT FORCE_INTERNAL_GME ) if( GME_FOUND AND NOT FORCE_INTERNAL_GME )
message( STATUS "Using system gme library ${GME_INCLUDE_DIR}" ) message( STATUS "Using system gme library, includes found at ${GME_INCLUDE_DIR}" )
else() else()
message( STATUS "Using internal gme library" ) message( STATUS "Using internal gme library" )
add_subdirectory( game-music-emu ) add_subdirectory( game-music-emu )

View file

@ -1,9 +1,6 @@
cmake_minimum_required( VERSION 2.8.7 ) cmake_minimum_required( VERSION 2.8.7 )
if(NOT CMAKE_CROSSCOMPILING) if( NOT CMAKE_CROSSCOMPILING )
message(STATUS "${ZLIB_INCLUDE_DIR}" )
message(STATUS "${BZIP2_INCLUDE_DIR}" )
message(STATUS "${LZMA_INCLUDE_DIR}" )
include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" ) include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" )
add_executable( zipdir add_executable( zipdir
zipdir.c ) zipdir.c )