Show more info in cmake log

This commit is contained in:
Pali Rohár 2011-04-13 12:56:10 +02:00
parent f967400740
commit 32229d8c72

View file

@ -600,26 +600,26 @@ macro(log_package PACKAGE_NAME PACKAGE)
if(NOT WITH_${PACKAGE})
message("${PACKAGE_NAME}: Disabled (Enable by param -DWITH_${PACKAGE}=ON)")
elseif(WITH_${PACKAGE} AND ${PACKAGE}_FOUND)
message("${PACKAGE_NAME}: Found")
message("${PACKAGE_NAME}: Found and enabled (Disable by param -DWITH_${PACKAGE}=OFF)")
else()
message("${PACKAGE_NAME}: Not Found")
endif()
endmacro()
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
message("Debug mode: Yes")
message("Debug mode: Yes (Disable by param -DCMAKE_BUILD_TYPE=Release)")
else()
message("Debug mode: No")
message("Debug mode: No (Enable by param -DCMAKE_BUILD_TYPE=Debug)")
endif()
if(ENABLE_STATIC)
message("Static linking: Yes")
message("Static linking: Yes (Disable by param -DENABLE_STATIC=OFF)")
else()
message("Static linking: No")
message("Static linking: No (Enable by param -DENABLE_STATIC=ON)")
endif()
if(WIN32)
message("Platform: Window")
message("Platform: Windows")
elseif(APPLE)
message("Platform: Mac")
elseif(BSD)
@ -633,29 +633,29 @@ else()
endif()
if(WIN32 AND ENABLE_STDIO_REDIRECT)
message("Stdio redirect: Yes")
message("Redirect stdio: Yes (Disable by param -DENABLE_STDIO_REDIRECT=OFF)")
else()
message("Stdio redirect: No")
message("Redirect stdio: No (Enable by param -DENABLE_STDIO_REDIRECT=ON)")
endif()
if(ENABLE_DOC AND DOXYGEN_FOUND)
message("Doxygen documentation: Yes")
message("Doxygen documentation: Yes (Disable by param -DENABLE_DOC=OFF)")
else()
message("Doxygen documentation: No")
message("Doxygen documentation: No (Enable by param -DENABLE_DOC=ON)")
endif()
if(ENABLE_UPX AND SELF_PACKER_FOR_EXECUTABLE)
message("Upx packer: Yes")
message("Upx packer: Yes (Disable by param -DENABLE_UPX=OFF)")
else()
message("Upx packer: No")
message("Upx packer: No (Enable by param -DENABLE_UPX=ON)")
endif()
if(WIN32 AND ENABLE_NSIS AND MAKENSIS_FOUND)
message("NSIS Installer: Yes")
message("NSIS Installer: Yes (Disable by param -DENABLE_NSIS=OFF)")
elseif(NOT WIN32)
message("NSIS Installer: Unsupported on this platform")
else()
message("NSIS Installer: No")
message("NSIS Installer: No (Enable by param -DENABLE_NSIS=ON)")
endif()
log_package("Bzip2" "BZIP2")