CMakeLists.txt
branchtrunk
changeset 254 13184ff204b9
parent 225 b43efdf651ed
child 269 fbc4e1843809
--- a/CMakeLists.txt	Tue Apr 29 20:46:43 2008 -0400
+++ b/CMakeLists.txt	Wed Apr 30 01:22:45 2008 -0400
@@ -8,6 +8,11 @@
 # testparse uses this when I'm looking at memory usage patterns.
 #ADD_DEFINITIONS(-DMOJOSHADER_DEBUG_MALLOC=1)
 
+IF(MSVC)
+    ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS=1)
+    ADD_DEFINITIONS(-TP)  # force .c files to compile as C++.
+ENDIF(MSVC)
+
 FIND_PACKAGE(SDL)
 IF(SDL_FOUND)
     INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})