From 387d7cf7c2740417c2ddd8d8779f6a19ca27825f Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 8 Apr 2019 12:31:20 +0200 Subject: [PATCH] System : Use appropriate mode when displaying a cmake message --- ApplicationCode/CMakeLists.txt | 2 +- CMakeLists.txt | 12 ++++++------ .../cafPdmCore/cafPdmCore_UnitTests/CMakeLists.txt | 2 +- .../cafPdmXml/cafPdmXml_UnitTests/CMakeLists.txt | 2 +- .../cafProjectDataModel_UnitTests/CMakeLists.txt | 2 +- OctavePlugin/CMakeLists.txt | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ApplicationCode/CMakeLists.txt b/ApplicationCode/CMakeLists.txt index eb9f7d239f..a213bb7d5d 100644 --- a/ApplicationCode/CMakeLists.txt +++ b/ApplicationCode/CMakeLists.txt @@ -27,7 +27,7 @@ CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/ApplicationCode/Adm/RiaVersionInfo.h.cmake if (MSVC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.11)) # VS 2017 : Disable warnings from from gtest code, using deprecated code related to TR1 add_definitions(-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING) - message("Add flag to disable warings from gtest - _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING") + message(STATUS "Add flag to disable warings from gtest - _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING") endif() include_directories( diff --git a/CMakeLists.txt b/CMakeLists.txt index 814f618422..b68717c2ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ mark_as_advanced(FORCE RESINSIGHT_ENABLE_COTIRE) if(RESINSIGHT_ENABLE_COTIRE) if(NOT COTIRE_MAXIMUM_NUMBER_OF_UNITY_INCLUDES) - message("cotire: Setting default number of includes to 5") + message(STATUS "cotire: Setting default number of includes to 5") set(COTIRE_MAXIMUM_NUMBER_OF_UNITY_INCLUDES 5) endif() @@ -266,7 +266,7 @@ if (Qt5Core_FOUND) find_package (Qt5 CONFIG REQUIRED Core Widgets OpenGL Network Script ScriptTools) else() if (RESINSIGHT_BUILD_WITH_QT5) - message("Could not find Qt5. Trying with Qt4") + message(WARNING "Could not find Qt5. Trying with Qt4") endif(RESINSIGHT_BUILD_WITH_QT5) find_package(Qt4 COMPONENTS QtCore QtGui QtMain REQUIRED) if (QT_VERSION_MINOR LESS 6) @@ -349,9 +349,9 @@ if (CMAKE_COMPILER_IS_GNUCC) endif() if (HAVE_GCC_SYNC_FUNCTIONS) - message("GCC synchronization functions detected") + message(STATUS "GCC synchronization functions detected") else() - message("GCC synchronization functions NOT detected, fallback to non threadsafe reference counting") + message(STATUS "GCC synchronization functions NOT detected, fallback to non threadsafe reference counting") add_definitions(-DCVF_USE_NON_THREADSAFE_REFERENCE_COUNT) endif() @@ -508,11 +508,11 @@ endif (RESINSIGHT_HDF5_BUNDLE_LIBRARIES) add_subdirectory(ApplicationCode) if (OCTAVE_MKOCTFILE) - message ("Adding OctavePlugin library") + message (STATUS "Adding OctavePlugin library") add_subdirectory(OctavePlugin) else (OCTAVE_MKOCTFILE) - message ("Could not find OCTAVE_MKOCTFILE, skipping OctavePlugin library") + message (STATUS "Could not find OCTAVE_MKOCTFILE, skipping OctavePlugin library") endif(OCTAVE_MKOCTFILE) ################################################################################ diff --git a/Fwk/AppFwk/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests/CMakeLists.txt b/Fwk/AppFwk/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests/CMakeLists.txt index 34063e3bc7..f5c9d39c1d 100644 --- a/Fwk/AppFwk/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests/CMakeLists.txt +++ b/Fwk/AppFwk/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests/CMakeLists.txt @@ -13,7 +13,7 @@ endif(Qt5Core_FOUND) if (MSVC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.11)) # VS 2017 : Disable warnings from from gtest code, using deprecated code related to TR1 add_definitions(-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING) - message("Add flag to disable warings from gtest - _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING") + message(STATUS "Add flag to disable warings from gtest - _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING") endif() include_directories ( diff --git a/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests/CMakeLists.txt b/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests/CMakeLists.txt index 038d9b2727..e39d304012 100644 --- a/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests/CMakeLists.txt +++ b/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests/CMakeLists.txt @@ -13,7 +13,7 @@ endif(Qt5Core_FOUND) if (MSVC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.11)) # VS 2017 : Disable warnings from from gtest code, using deprecated code related to TR1 add_definitions(-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING) - message("Add flag to disable warings from gtest - _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING") + message(STATUS "Add flag to disable warings from gtest - _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING") endif() include_directories ( diff --git a/Fwk/AppFwk/cafProjectDataModel/cafProjectDataModel_UnitTests/CMakeLists.txt b/Fwk/AppFwk/cafProjectDataModel/cafProjectDataModel_UnitTests/CMakeLists.txt index 421c0960cd..d675cf7e2f 100644 --- a/Fwk/AppFwk/cafProjectDataModel/cafProjectDataModel_UnitTests/CMakeLists.txt +++ b/Fwk/AppFwk/cafProjectDataModel/cafProjectDataModel_UnitTests/CMakeLists.txt @@ -13,7 +13,7 @@ endif(Qt5Core_FOUND) if (MSVC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.11)) # VS 2017 : Disable warnings from from gtest code, using deprecated code related to TR1 add_definitions(-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING) - message("Add flag to disable warings from gtest - _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING") + message(STATUS "Add flag to disable warings from gtest - _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING") endif() include_directories ( diff --git a/OctavePlugin/CMakeLists.txt b/OctavePlugin/CMakeLists.txt index 018c3f8cc1..89064dd7a4 100644 --- a/OctavePlugin/CMakeLists.txt +++ b/OctavePlugin/CMakeLists.txt @@ -71,7 +71,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") endif () endif () -message ("Compiling Octave plugins using : ${OCTAVE_MKOCTFILE}") +message (STATUS "Compiling Octave plugins using : ${OCTAVE_MKOCTFILE}") if (${CMAKE_SYSTEM_NAME} MATCHES "Windows") option(RESINSIGHT_OCTAVE_PLUGIN_QT "Compile Octave plugin using Qt located insided Octave root folder" ON)