Commit 5ef5144e authored by Rashad Kanavath's avatar Rashad Kanavath

CMake: report source, binary, install dir

parent 988c05a1
...@@ -372,11 +372,14 @@ macro(get_white_spaces var res) ...@@ -372,11 +372,14 @@ macro(get_white_spaces var res)
endforeach() endforeach()
endmacro() endmacro()
message("=== Begin OTB CMake Summary ===") message("\n======================= Begin of OTB cmake summary =======================\n")
set(option_list ${OTB_MODULE_ACTIVATION_OPTION_LIST}) set(option_list ${OTB_MODULE_ACTIVATION_OPTION_LIST})
list(SORT option_list) list(SORT option_list)
foreach(otb_option foreach(otb_option
CMAKE_SOURCE_DIR
CMAKE_BINARY_DIR
CMAKE_INSTALL_PREFIX
CMAKE_COMMAND CMAKE_COMMAND
CMAKE_C_COMPILER CMAKE_C_COMPILER
CMAKE_CXX_COMPILER CMAKE_CXX_COMPILER
...@@ -449,7 +452,7 @@ foreach(dep ${option_list}) ...@@ -449,7 +452,7 @@ foreach(dep ${option_list})
endif() endif()
endif() endif()
if(${dep}_DIR) if(DEFINED ${dep}_DIR)
set(var2_key ${dep}_DIR) set(var2_key ${dep}_DIR)
set(var2_val ${${dep}_DIR}) set(var2_val ${${dep}_DIR})
else() else()
...@@ -483,9 +486,9 @@ foreach(dep ${option_list}) ...@@ -483,9 +486,9 @@ foreach(dep ${option_list})
endforeach() endforeach()
message(STATUS "CMake ${CMAKE_VERSION} successfully configured ${PROJECT_NAME} using ${CMAKE_GENERATOR} generator") message("\nCMake ${CMAKE_VERSION} successfully configured ${PROJECT_NAME} using ${CMAKE_GENERATOR} generator\n")
message("=== End OTB CMake Summary ===") message("======================= End of OTB cmake summary =======================")
#don't need this one anymore. so unset it. #don't need this one anymore. so unset it.
unset(option_list) unset(option_list)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment