diff --git a/Tools/DirectIOART/CMakeLists.txt b/Tools/DirectIOART/CMakeLists.txt
index 6fc8f907d9ff80be7dc08d04ea3e686c60bec134..77472348dee233beaa782234276ee78c04bb1f07 100644
--- a/Tools/DirectIOART/CMakeLists.txt
+++ b/Tools/DirectIOART/CMakeLists.txt
@@ -13,6 +13,9 @@ atlas_depends_on_subdirs( PRIVATE
 atlas_install_scripts( test/*.sh test/*.py )
 
 # Install joboptions
-if ($ENV{AtlasProject} STREQUAL AthAnalysis)
-  atlas_install_joboptions( share/*.py )
+
+if (NOT $ENV{AtlasProject} STREQUAL "")
+  if ($ENV{AtlasProject} STREQUAL "AthAnalysis")
+    atlas_install_joboptions( share/*.py )
+  endif()
 endif()