aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
authorclick <none@none>2010-08-11 22:26:39 +0200
committerclick <none@none>2010-08-11 22:26:39 +0200
commit293ed49eaa1246ed649fc25bf8aee11fe3c5777e (patch)
treee663ed9cc0d6620be997e66ba689401d0e90e628 /externals
parent113d05b9d5f217a89e68f88bc1e9faa8a6ae660f (diff)
Buildsystem: Ensure that we're on a Windows-platform if attempting to load Windows-specific includefiles
(Why the hoot can't Microsoft use the same things as the rest of the world, and stick to standards!?) --HG-- branch : trunk
Diffstat (limited to 'externals')
-rw-r--r--externals/libmpq/CMakeLists.txt20
1 files changed, 14 insertions, 6 deletions
diff --git a/externals/libmpq/CMakeLists.txt b/externals/libmpq/CMakeLists.txt
index f665fa59b92..2a0da915171 100644
--- a/externals/libmpq/CMakeLists.txt
+++ b/externals/libmpq/CMakeLists.txt
@@ -14,12 +14,20 @@ set(mpq_STAT_SRCS
${sources_mpq}
)
-include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}/win
- ${CMAKE_SOURCE_DIR}/externals/zlib
- ${CMAKE_SOURCE_DIR}/externals/bzip2
-)
+if( UNIX )
+ include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/externals/zlib
+ ${CMAKE_SOURCE_DIR}/externals/bzip2
+ )
+elseif( WIN32 )
+ include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/win
+ ${CMAKE_SOURCE_DIR}/externals/zlib
+ ${CMAKE_SOURCE_DIR}/externals/bzip2
+ )
+endif()
add_library(mpq STATIC ${mpq_STAT_SRCS})