|
|
@@ -134,10 +134,11 @@ if (NOT URHO3D_LIB_TYPE STREQUAL SHARED)
|
|
|
add_definitions (-DURHO3D_STATIC_DEFINE)
|
|
|
endif ()
|
|
|
|
|
|
-# If using Windows, find DirectX SDK include & library directories.
|
|
|
+# Find DirectX SDK include & library directories if applicable. The headers in the SDK will
|
|
|
+# be incompatible with MinGW, so only search when using Visual Studio.
|
|
|
# Note: if a recent Windows SDK is installed instead, it will be possible to compile without;
|
|
|
# therefore do not log a fatal error in that case
|
|
|
-if (WIN32)
|
|
|
+if (MSVC)
|
|
|
find_package (Direct3D)
|
|
|
if (DIRECT3D_FOUND)
|
|
|
include_directories (${DIRECT3D_INCLUDE_DIR})
|