minor changes in cmake files (from winfried)
authorAntonin Descampe <antonin@gmail.com>
Wed, 17 Nov 2010 10:26:05 +0000 (10:26 +0000)
committerAntonin Descampe <antonin@gmail.com>
Wed, 17 Nov 2010 10:26:05 +0000 (10:26 +0000)
libjp3dvm/CMakeLists.txt

index 9cec396f9c1b4c325429ebb3168cfcb81db492b4..4c0fae41570d9a2ead55448280f0adb79ad0c7fe 100644 (file)
@@ -1,4 +1,9 @@
-ADD_DEFINITIONS(-O3)
+IF(UNIX OR CYGWIN)
+ ADD_DEFINITIONS(-O3)
+ELSEIF(WIN32)
+  ADD_DEFINITIONS(/Os)
+ENDIF(UNIX OR CYGWIN)
+#
 INCLUDE_REGULAR_EXPRESSION("^.*$")
 # Defines the source code for the library
 SET(JP3DVM_SRCS