diff --git a/tools/modelsim/set_modelsim b/tools/modelsim/set_modelsim
index ab8da5327d58d4eb1ae32494af6c9d73fd733229..57ac73beeb64b7e301dbcddde2a4cbf1e842278f 100755
--- a/tools/modelsim/set_modelsim
+++ b/tools/modelsim/set_modelsim
@@ -29,7 +29,7 @@
 # - use '. <script>.sh' to have the settings apply in this shell, otherwise they get lost when <script>.sh returns
 
 # Select target
-TOOLSET=${1:-}
+export TOOLSET=${1:-}
 echo "Make Modelsim and Altera library simulation settings for RadioHDL with tool setting: ${TOOLSET}"
 
 # Select tool version