Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't add windows.h-specific defines under linux.

  • Loading branch information...
commit 66d2e6dca1689dffee8a2a2304ddc59061837632 1 parent 8ab3935
@dscharrer dscharrer authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 CMakeLists.txt
View
8 CMakeLists.txt
@@ -240,13 +240,15 @@ endif()
if(NOT ARX_USE_OPENAL AND NOT ARX_USE_DSOUND)
message(WARNING "No audio backend enabled.")
endif()
-if((NOT HAVE_NANOSLEEP_FUNC OR NOT HAVE_CLOCK_GETTIME) AND NOT WIN32)
+if((NOT HAVE_NANOSLEEP_FUNC OR NOT HAVE_CLOCK_GETTIME) AND NOT HAVE_WINAPI)
message(SEND_ERROR "Need either nanosleep and clock_gettime or WIN32.")
endif()
# Preprocessor definitions
-add_definitions(-DNOMINMAX)
-add_definitions(-DWIN32_LEAN_AND_MEAN)
+if(HAVE_WINAPI)
+ add_definitions(-DNOMINMAX)
+ add_definitions(-DWIN32_LEAN_AND_MEAN)
+endif(HAVE_WINAPI)
# Sources
set(AI_SOURCES
Please sign in to comment.
Something went wrong with that request. Please try again.