Enhance CMake build configuration summary
This commit is contained in:
parent
a484541d4b
commit
5c85a4ea95
@ -205,22 +205,23 @@ endif (OPTION_BUILD_SHARED_LIBS AND GENERATE_EXPORT_HEADERS)
|
||||
include (FeatureSummary)
|
||||
|
||||
message ("")
|
||||
feature_summary (WHAT ALL DESCRIPTION "Configuration Summary --\n")
|
||||
set (_descr "${PROJECT_NAME} ${FLTK_VERSION} generated by CMake ${CMAKE_VERSION}")
|
||||
feature_summary (WHAT ALL DESCRIPTION "Configuration Summary for ${_descr} --\n")
|
||||
|
||||
message (STATUS "Static libraries will be written to ${CMAKE_CURRENT_BINARY_DIR}/lib")
|
||||
message (STATUS "Static libraries will be built in ${CMAKE_CURRENT_BINARY_DIR}/lib")
|
||||
|
||||
if (OPTION_BUILD_SHARED_LIBS)
|
||||
message (STATUS "Shared libraries will be written to ${CMAKE_CURRENT_BINARY_DIR}/lib")
|
||||
message (STATUS "Shared libraries will be built in ${CMAKE_CURRENT_BINARY_DIR}/lib")
|
||||
else ()
|
||||
message (STATUS "Shared libraries will not be built (set OPTION_BUILD_SHARED_LIBS=ON to build)")
|
||||
endif ()
|
||||
|
||||
if (FLTK_BUILD_TEST)
|
||||
message (STATUS "Test programs will be written to ${CMAKE_CURRENT_BINARY_DIR}/bin/test")
|
||||
message (STATUS "Test programs will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/test")
|
||||
endif ()
|
||||
|
||||
if (FLTK_BUILD_EXAMPLES)
|
||||
message (STATUS "Example programs will be written to ${CMAKE_CURRENT_BINARY_DIR}/bin/examples")
|
||||
message (STATUS "Example programs will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/examples")
|
||||
else ()
|
||||
message (STATUS "Example programs will not be built (set FLTK_BUILD_EXAMPLES=ON to build)")
|
||||
endif ()
|
||||
|
Loading…
Reference in New Issue
Block a user