Browse Source

Use the same condition to exclude kNet when using SDK installation.
Related to commit 867160628cd170f391c63912a2d7638c2ee13bbb

Yao Wei Tjong 姚伟忠 11 years ago
parent
commit
09dcc466f9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Source/CMake/Modules/FindUrho3D.cmake

+ 4 - 1
Source/CMake/Modules/FindUrho3D.cmake

@@ -128,7 +128,10 @@ else ()
 
     if (URHO3D_INCLUDE_DIRS)
         set (BASE_DIR ${URHO3D_INCLUDE_DIRS})
-        set (DIRS Bullet kNet SDL)
+        set (DIRS Bullet SDL)
+        if (URHO3D_NETWORK)
+            list (APPEND DIRS kNet)
+        endif ()
         if (URHO3D_ANGELSCRIPT)
             list (APPEND DIRS AngelScript)
         endif ()