From cbca378a4197e50f73892e33422d2fe7e78ca86d Mon Sep 17 00:00:00 2001
From: Rainer Kartmann <rainer.kartmann@kit.edu>
Date: Fri, 5 Nov 2021 11:25:36 +0100
Subject: [PATCH] Fix error when /usr/local/include does not exist

---
 SimDynamics/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/SimDynamics/CMakeLists.txt b/SimDynamics/CMakeLists.txt
index 0333867fb..a2a767430 100644
--- a/SimDynamics/CMakeLists.txt
+++ b/SimDynamics/CMakeLists.txt
@@ -81,7 +81,9 @@ if (SimDynamics_USE_BULLET)
                 target_include_directories(SimDynamics PUBLIC ${GLUT_INCLUDE_DIR})
             ELSE ()
                 # This is the lines for linux.  This should always work if everything is installed and working fine.
-                target_include_directories(SimDynamics PUBLIC "/usr/include;/usr/local/include;${GLUT_INCLUDE_DIR}")
+
+                # The directory /usr/local/include does not exist by default + this is not necessary.
+                # target_include_directories(SimDynamics PUBLIC "/usr/include;/usr/local/include;${GLUT_INCLUDE_DIR}")
             ENDIF ()
         ELSE ()
             SET( GLUT_glut_LIBRARY "" CACHE PATH "Glut library." )
-- 
GitLab