Skip to content
Snippets Groups Projects
Commit 836712ab authored by Dennis Terhorst's avatar Dennis Terhorst :rocket:
Browse files

try different compiler replace

parent 483209f8
No related branches found
No related tags found
No related merge requests found
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a924f3ebf..e369e3ed1 100644
index a924f3ebf..641e15d09 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -166,6 +166,11 @@ nest_process_models()
nest_process_with_optimize()
nest_process_with_debug()
@@ -23,6 +23,13 @@ cmake_minimum_required( VERSION 3.19 )
list( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake )
project( nest CXX C )
+
+# In case the CXX compiler set is a symlink that disappears at runtime, we want
+# to resolve to the actual binary.
+# (Required e.g. for Docker build-images with Spack installations / EBRAINS Jupyter)
+file(REAL_PATH ${CMAKE_CXX_COMPILER} CMAKE_CXX_COMPILER)
+file(REAL_PATH ${CMAKE_C_COMPILER} CMAKE_C_COMPILER)
+
nest_get_color_flags()
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${NEST_C_COLOR_FLAGS}" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${NEST_CXX_COLOR_FLAGS}" )
set( NEST_USER_EMAIL "users@nest-simulator.org" )
include( ColorMessages )
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