From 9fa067ff98bfbcfd13734daae429cd744a244da2 Mon Sep 17 00:00:00 2001 From: Ayssar_Juelich Date: Wed, 30 Nov 2022 11:45:04 +0100 Subject: [PATCH 1/2] Add compiler version to nest-config --- bin/nest-config.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/nest-config.in b/bin/nest-config.in index 55e8adda8f..ab4fddde7f 100755 --- a/bin/nest-config.in +++ b/bin/nest-config.in @@ -16,6 +16,7 @@ Known values for OPTION are: --cflags print pre-processor and compiler flags --includes print includes --compiler print the compiler used to compile NEST + --compiler-version Print the compiler version --python-executable print full path to Python interpreter used --python-version print Python version string for interpreter --static-libraries print "ON" if configured for static libraries, "OFF" otherwise @@ -71,6 +72,9 @@ while test $# -gt 0; do --compiler) echo "@CMAKE_CXX_COMPILER@" ;; + --compiler-version) + echo "@CMAKE_CXX_COMPILER_ID@ @CMAKE_CXX_COMPILER_VERSION@" + ;; --python-executable) echo "@Python_EXECUTABLE@" ;; From a9f3893832d0a989a00660b90e45148b9cf13d32 Mon Sep 17 00:00:00 2001 From: Ayssar_Juelich Date: Wed, 30 Nov 2022 16:57:09 +0100 Subject: [PATCH 2/2] Add compiler-name and compiler-version --- bin/nest-config.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/nest-config.in b/bin/nest-config.in index ab4fddde7f..b7cf9bcbdb 100755 --- a/bin/nest-config.in +++ b/bin/nest-config.in @@ -16,7 +16,8 @@ Known values for OPTION are: --cflags print pre-processor and compiler flags --includes print includes --compiler print the compiler used to compile NEST - --compiler-version Print the compiler version + --compiler-name Print the compiler name used to compile NEST + --compiler-version Print the compiler version used to compile NEST --python-executable print full path to Python interpreter used --python-version print Python version string for interpreter --static-libraries print "ON" if configured for static libraries, "OFF" otherwise @@ -72,8 +73,11 @@ while test $# -gt 0; do --compiler) echo "@CMAKE_CXX_COMPILER@" ;; + --compiler-name) + echo "@CMAKE_CXX_COMPILER_ID@" + ;; --compiler-version) - echo "@CMAKE_CXX_COMPILER_ID@ @CMAKE_CXX_COMPILER_VERSION@" + echo "@CMAKE_CXX_COMPILER_VERSION@" ;; --python-executable) echo "@Python_EXECUTABLE@"