Skip to content
Snippets Groups Projects
Commit cbca378a authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Fix error when /usr/local/include does not exist

parent 50ea8cc2
No related branches found
No related tags found
No related merge requests found
......@@ -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." )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment