Skip to content
Snippets Groups Projects
Commit b52cf0c1 authored by Riccardo Maria Bianchi's avatar Riccardo Maria Bianchi :sunny:
Browse files

Print info about build type and C++ standard

parent 624c1165
No related branches found
No related tags found
2 merge requests!170Merging latest CMake fixes from master into the branch to test the new CI single-build jobs,!168Fix FullSimLight and FSL builds for distribution kits, and make HepMC3 dependency optional
...@@ -18,6 +18,8 @@ if( (CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) OR GEOMODEL_BUILD_GEOMODELG4_ ...@@ -18,6 +18,8 @@ if( (CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) OR GEOMODEL_BUILD_GEOMODELG4_
include( cmake_colors_defs ) include( cmake_colors_defs )
# Warn the users about what they are doing # Warn the users about what they are doing
message(STATUS "${BoldGreen}Building ${PROJECT_NAME} individually, as a top-level project.${ColourReset}") message(STATUS "${BoldGreen}Building ${PROJECT_NAME} individually, as a top-level project.${ColourReset}")
# Set a default build type
include( BuildType )
# Set default build and C++ options # Set default build and C++ options
include( configure_cpp_options ) include( configure_cpp_options )
set( CMAKE_FIND_FRAMEWORK "LAST" CACHE STRING set( CMAKE_FIND_FRAMEWORK "LAST" CACHE STRING
...@@ -31,6 +33,8 @@ if( (CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) OR GEOMODEL_BUILD_GEOMODELG4_ ...@@ -31,6 +33,8 @@ if( (CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) OR GEOMODEL_BUILD_GEOMODELG4_
endif() endif()
# Set a flag to steer the of the subpackages # Set a flag to steer the of the subpackages
set( ${PROJECT_NAME}_INDIVIDUAL_BUILD ON ) set( ${PROJECT_NAME}_INDIVIDUAL_BUILD ON )
# Print Build Info on screen
include( PrintBuildInfo )
else() else()
# I am called from other projects with add_subdirectory(). # I am called from other projects with add_subdirectory().
message( STATUS "Building ${PROJECT_NAME} as part of the root GeoModel project.") message( STATUS "Building ${PROJECT_NAME} as part of the root GeoModel project.")
......
...@@ -19,6 +19,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) ...@@ -19,6 +19,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
include( cmake_colors_defs ) include( cmake_colors_defs )
# Warn the users about what they are doing # Warn the users about what they are doing
message(STATUS "${BoldGreen}Building ${PROJECT_NAME} individually, as a top-level project.${ColourReset}") message(STATUS "${BoldGreen}Building ${PROJECT_NAME} individually, as a top-level project.${ColourReset}")
# Set a default build type
include( BuildType )
# Set default build and C++ options # Set default build and C++ options
include( configure_cpp_options ) include( configure_cpp_options )
set( CMAKE_FIND_FRAMEWORK "LAST" CACHE STRING set( CMAKE_FIND_FRAMEWORK "LAST" CACHE STRING
...@@ -36,6 +38,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) ...@@ -36,6 +38,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
find_package( GeoModelIO REQUIRED ${GeoModel_VERSION} ) find_package( GeoModelIO REQUIRED ${GeoModel_VERSION} )
# Set a flag to steer the build of the subpackages # Set a flag to steer the build of the subpackages
#set( VISUALIZATION_INDIVIDUAL_BUILD ON ) #set( VISUALIZATION_INDIVIDUAL_BUILD ON )
# Print Build Info on screen
include( PrintBuildInfo )
else() else()
# I am called from other project with add_subdirectory(). # I am called from other project with add_subdirectory().
message( STATUS "Building ${PROJECT_NAME} as part of the root GeoModel project.") message( STATUS "Building ${PROJECT_NAME} as part of the root GeoModel project.")
......
...@@ -24,6 +24,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) ...@@ -24,6 +24,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
include( cmake_colors_defs ) include( cmake_colors_defs )
# Warn the users about what they are doing # Warn the users about what they are doing
message(STATUS "${BoldGreen}Building ${PROJECT_NAME} individually, as a top-level project.${ColourReset}") message(STATUS "${BoldGreen}Building ${PROJECT_NAME} individually, as a top-level project.${ColourReset}")
# Set a default build type
include( BuildType )
# Set default build and C++ options # Set default build and C++ options
include( configure_cpp_options ) include( configure_cpp_options )
set( CMAKE_FIND_FRAMEWORK "LAST" CACHE STRING set( CMAKE_FIND_FRAMEWORK "LAST" CACHE STRING
...@@ -33,6 +35,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) ...@@ -33,6 +35,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
find_package( GeoModelIO REQUIRED ${GeoModel_VERSION} ) find_package( GeoModelIO REQUIRED ${GeoModel_VERSION} )
# Set a flag to steer the build of the subpackages # Set a flag to steer the build of the subpackages
set( VISUALIZATION_INDIVIDUAL_BUILD ON ) set( VISUALIZATION_INDIVIDUAL_BUILD ON )
# Print Build Info on screen
include( PrintBuildInfo )
else() else()
# I am called from other project with add_subdirectory(). # I am called from other project with add_subdirectory().
message( STATUS "Building ${PROJECT_NAME} as part of the root GeoModel project.") message( STATUS "Building ${PROJECT_NAME} as part of the root GeoModel project.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment