Browse Source

CMake: Fix FindODE's include path finding

It needs to look for the path containing the "ode" directory,
not the "ode" directory itself.
Sam Edwards 7 years ago
parent
commit
56b211f902
1 changed files with 1 additions and 3 deletions
  1. 1 3
      cmake/modules/FindODE.cmake

+ 1 - 3
cmake/modules/FindODE.cmake

@@ -23,9 +23,7 @@
 
 if(NOT ODE_INCLUDE_DIR OR NOT ODE_LIBRARY_DIR)
 	# Find the libode include files
-	find_path(ODE_INCLUDE_DIR
-		NAMES "ode.h"
-		PATH_SUFFIXES "ode")
+	find_path(ODE_INCLUDE_DIR "ode/ode.h")
 
 	# Find the libode library built for release
 	find_library(ODE_RELEASE_LIBRARY