Browse Source

Update CMakeLists.txt

Linke irrXml static for apple
Kim Kulling 5 years ago
parent
commit
d2499ac197
1 changed files with 5 additions and 1 deletions
  1. 5 1
      contrib/irrXML/CMakeLists.txt

+ 5 - 1
contrib/irrXML/CMakeLists.txt

@@ -15,7 +15,11 @@ if ( MSVC )
 endif ( MSVC )
 
 IF(CMAKE_SYSTEM_NAME MATCHES "(Darwin|FreeBSD)")
-  add_library(IrrXML ${IrrXML_SRCS})
+  IF(APPLE)
+    add_library(IrrXML STATIC ${IrrXML_SRCS})
+  ELSE()
+    add_library(IrrXML ${IrrXML_SRCS})
+  ENDIF()
 ELSE()
   add_library(IrrXML STATIC ${IrrXML_SRCS})
 ENDIF()