diff --git a/CMakeLists.txt b/CMakeLists.txt index ecf5bc23f082bfcb0f75df15219a9feda1f92601..1cb91d27654b6db5d0aaec0e976a2cd68cc758f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,11 +81,6 @@ IF (OGS_CMAKE_DEBUG) list_all_cmake_variable_values() ENDIF (OGS_CMAKE_DEBUG) -OPTION(OGS_BUILD_INFO "Should build information be generated" ON) -IF (OGS_BUILD_INFO) - ADD_DEFINITIONS (-DOGS_BUILD_INFO) -ENDIF (OGS_BUILD_INFO) - # Code coverage OPTION(OGS_COVERAGE "Enables code coverage measurements with gcov/lcov." OFF) diff --git a/Gui/DataExplorer.cmake b/Gui/DataExplorer.cmake index e629f1b421ef767bf6477119696cee3e37bf2501..e83745cb494f0134af535e9f10bd3e8a56534c98 100644 --- a/Gui/DataExplorer.cmake +++ b/Gui/DataExplorer.cmake @@ -105,10 +105,6 @@ IF(MSVC) TARGET_LINK_LIBRARIES( ogs-gui winmm) ENDIF(MSVC) -IF(OGS_BUILD_INFO) - ADD_DEFINITIONS(-DOGS_BUILD_INFO) -ENDIF() # OGS_BUILD_INFO - ### OpenSG support ### IF (VTKOSGCONVERTER_FOUND) USE_OPENSG(ogs-gui) diff --git a/Gui/mainwindow.cpp b/Gui/mainwindow.cpp index f917d13cb43284b96ba68e0ed341fdb4784f85bb..6f93923da3772c54540f27d7a4f6b1413542b028 100644 --- a/Gui/mainwindow.cpp +++ b/Gui/mainwindow.cpp @@ -119,9 +119,7 @@ #include "VtkTrackedCamera.h" #endif // OGS_USE_VRPN -#ifdef OGS_BUILD_INFO #include "BaseLib/BuildInfo.h" -#endif // OGS_BUILD_INFO using namespace FileIO; diff --git a/SimpleTests/MatrixTests/MatMult.cpp b/SimpleTests/MatrixTests/MatMult.cpp index fbd318729a34da5f4d3ddc667bc0709ab3ff304b..382e2a0c2541123375227c1a6ccee5207a854af1 100644 --- a/SimpleTests/MatrixTests/MatMult.cpp +++ b/SimpleTests/MatrixTests/MatMult.cpp @@ -35,9 +35,7 @@ #include <sys/unistd.h> #endif -#ifdef OGS_BUILD_INFO #include "BaseLib/BuildInfo.h" -#endif #ifdef _OPENMP #include <omp.h> @@ -101,19 +99,17 @@ int main(int argc, char *argv[]) // read number of threads unsigned n_threads (n_cores_arg.getValue()); -#ifdef OGS_BUILD_INFO INFO("%s was build with compiler %s", argv[0], BaseLib::BuildInfo::cmake_cxx_compiler.c_str()); - #ifdef NDEBUG - INFO("CXX_FLAGS: %s %s", - BaseLib::BuildInfo::cmake_cxx_flags.c_str(), - BaseLib::BuildInfo::cmake_cxx_flags_release.c_str()); - #else - INFO("CXX_FLAGS: %s %s", - BaseLib::BuildInfo::cmake_cxx_flags.c_str(), - BaseLib::BuildInfo::cmake_cxx_flags_debug.c_str()); - #endif +#ifdef NDEBUG + INFO("CXX_FLAGS: %s %s", + BaseLib::BuildInfo::cmake_cxx_flags.c_str(), + BaseLib::BuildInfo::cmake_cxx_flags_release.c_str()); +#else + INFO("CXX_FLAGS: %s %s", + BaseLib::BuildInfo::cmake_cxx_flags.c_str(), + BaseLib::BuildInfo::cmake_cxx_flags_debug.c_str()); #endif #ifdef UNIX diff --git a/SimpleTests/MatrixTests/MatVecMultNDPerm.cpp b/SimpleTests/MatrixTests/MatVecMultNDPerm.cpp index a7c834d3948d7610d68db2fe6b72cfe10d61b8a8..0e9d7693827a1f0c002d4918477ff54dbe3d1d7c 100644 --- a/SimpleTests/MatrixTests/MatVecMultNDPerm.cpp +++ b/SimpleTests/MatrixTests/MatVecMultNDPerm.cpp @@ -14,9 +14,7 @@ #include <cstdlib> -#ifdef OGS_BUILD_INFO #include "BaseLib/BuildInfo.h" -#endif #ifdef UNIX #include <sys/unistd.h> @@ -89,19 +87,17 @@ int main(int argc, char *argv[]) logog::Cout *logogCout(new logog::Cout); logogCout->SetFormatter(*custom_format); -#ifdef OGS_BUILD_INFO INFO("%s was build with compiler %s", argv[0], BaseLib::BuildInfo::cmake_cxx_compiler.c_str()); - #ifdef NDEBUG - INFO("CXX_FLAGS: %s %s", - BaseLib::BuildInfo::cmake_cxx_flags.c_str(), - BaseLib::BuildInfo::cmake_cxx_flags_release.c_str()); - #else - INFO("CXX_FLAGS: %s %s", - BaseLib::BuildInfo::cmake_cxx_flags.c_str(), - BaseLib::BuildInfo::cmake_cxx_flags_debug.c_str()); - #endif +#ifdef NDEBUG + INFO("CXX_FLAGS: %s %s", + BaseLib::BuildInfo::cmake_cxx_flags.c_str(), + BaseLib::BuildInfo::cmake_cxx_flags_release.c_str()); +#else + INFO("CXX_FLAGS: %s %s", + BaseLib::BuildInfo::cmake_cxx_flags.c_str(), + BaseLib::BuildInfo::cmake_cxx_flags_debug.c_str()); #endif #ifdef UNIX diff --git a/SimpleTests/MatrixTests/MatVecMultNDPermOpenMP.cpp b/SimpleTests/MatrixTests/MatVecMultNDPermOpenMP.cpp index 9bc713be379dafff0625a0f4c61bf85e9ff4bf10..5393f638b83c431c4c19ef4d457fb5b65628c72b 100644 --- a/SimpleTests/MatrixTests/MatVecMultNDPermOpenMP.cpp +++ b/SimpleTests/MatrixTests/MatVecMultNDPermOpenMP.cpp @@ -34,9 +34,7 @@ #include <sys/unistd.h> #endif -#ifdef OGS_BUILD_INFO #include "BaseLib/BuildInfo.h" -#endif #ifdef _OPENMP #include <omp.h> @@ -99,19 +97,17 @@ int main(int argc, char *argv[]) // read number of threads unsigned n_threads (n_cores_arg.getValue()); -#ifdef OGS_BUILD_INFO INFO("%s was build with compiler %s", argv[0], BaseLib::BuildInfo::cmake_cxx_compiler.c_str()); - #ifdef NDEBUG - INFO("CXX_FLAGS: %s %s", - BaseLib::BuildInfo::cmake_cxx_flags.c_str(), - BaseLib::BuildInfo::cmake_cxx_flags_release.c_str()); - #else - INFO("CXX_FLAGS: %s %s", - BaseLib::BuildInfo::cmake_cxx_flags.c_str(), - BaseLib::BuildInfo::cmake_cxx_flags_debug.c_str()); - #endif +#ifdef NDEBUG + INFO("CXX_FLAGS: %s %s", + BaseLib::BuildInfo::cmake_cxx_flags.c_str(), + BaseLib::BuildInfo::cmake_cxx_flags_release.c_str()); +#else + INFO("CXX_FLAGS: %s %s", + BaseLib::BuildInfo::cmake_cxx_flags.c_str(), + BaseLib::BuildInfo::cmake_cxx_flags_debug.c_str()); #endif #ifdef UNIX diff --git a/SimpleTests/MatrixTests/MatVecMultPthreads.cpp b/SimpleTests/MatrixTests/MatVecMultPthreads.cpp index 2ef9024a7751e0d9b5f3a20143ac0f9ce509d3ed..88f8ce067515b41479496fbe20129dae52299c72 100644 --- a/SimpleTests/MatrixTests/MatVecMultPthreads.cpp +++ b/SimpleTests/MatrixTests/MatVecMultPthreads.cpp @@ -32,9 +32,7 @@ #include <sys/unistd.h> #endif -#ifdef OGS_BUILD_INFO #include "BaseLib/BuildInfo.h" -#endif #ifdef HAVE_PTHREADS #include <pthread.h> @@ -93,19 +91,17 @@ int main(int argc, char *argv[]) logog_file->SetFormatter( *custom_format ); } -#ifdef OGS_BUILD_INFO - INFO("%s was build with compiler %s", - argv[0], - BaseLib::BuildInfo::cmake_cxx_compiler.c_str()); - #ifdef NDEBUG - INFO("CXX_FLAGS: %s %s", - BaseLib::BuildInfo::cmake_cxx_flags.c_str(), - BaseLib::BuildInfo::cmake_cxx_flags_release.c_str()); - #else - INFO("CXX_FLAGS: %s %s", - BaseLib::BuildInfo::cmake_cxx_flags.c_str(), - BaseLib::BuildInfo::cmake_cxx_flags_debug.c_str()); - #endif +INFO("%s was build with compiler %s", + argv[0], + BaseLib::BuildInfo::cmake_cxx_compiler.c_str()); +#ifdef NDEBUG + INFO("CXX_FLAGS: %s %s", + BaseLib::BuildInfo::cmake_cxx_flags.c_str(), + BaseLib::BuildInfo::cmake_cxx_flags_release.c_str()); +#else + INFO("CXX_FLAGS: %s %s", + BaseLib::BuildInfo::cmake_cxx_flags.c_str(), + BaseLib::BuildInfo::cmake_cxx_flags_debug.c_str()); #endif #ifdef UNIX