]> git.jsancho.org Git - lugaru.git/commitdiff
Fixed CMake detection of internal libs
authorNeal Gompa <ngompa13@gmail.com>
Fri, 14 May 2010 00:10:27 +0000 (19:10 -0500)
committerNeal Gompa <ngompa13@gmail.com>
Fri, 14 May 2010 00:10:27 +0000 (19:10 -0500)
CMakeLists.txt

index ad651c903a8734b27486d50860738642c9677558..2a0a66a2df1e2308dc56f79382e8b653cdc75bda 100644 (file)
@@ -5,10 +5,10 @@ cmake_minimum_required(VERSION 2.6)
 set(SRCDIR "${CMAKE_CURRENT_SOURCE_DIR}/Source")
 set(DEPDIR "${CMAKE_CURRENT_SOURCE_DIR}/Dependencies")
 
-if(NOT CMAKE_BUILD_TYPE)\r
-  set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING\r
-      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel"\r
-      FORCE)\r
+if(NOT CMAKE_BUILD_TYPE)
+  set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
+      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel"
+      FORCE)
 endif(NOT CMAKE_BUILD_TYPE)
 
 if(NOT LUGARU_INSTALL_PREFIX)
@@ -162,7 +162,7 @@ if (NOT OPENAL_FOUND)
     set(OPENAL_INCLUDE_DIR "${OPENALDIR}/include/AL")
     set(OPENAL_LIBRARY "")
 
-    if (WINDOWS)
+    if (WIN32)
         set(LUGARU_HAS_INTERNAL_OPENAL True)
 #        if (MSVC)                     # !!! FIXME: package MSVC .dll and .lib for Windows?
 #            set(OPENAL_LIBRARY
@@ -174,7 +174,7 @@ if (NOT OPENAL_FOUND)
                 ${OPENALDIR}/lib/win32/mingw/libOpenAL32.dll.a
             )
         endif (MINGW)
-     endif(WINDOWS)
+     endif(WIN32)
 
     if (NOT LUGARU_HAS_INTERNAL_OPENAL)
         message(ERROR "We don't have a prebuilt OpenAL for this platform.")
@@ -202,7 +202,7 @@ if (NOT SDL_FOUND)
         )
     endif (APPLE)
 
-    if (WINDOWS)
+    if (WIN32)
         set(LUGARU_HAS_INTERNAL_SDL True)
         if (MSVC)
           set(SDL_LIBRARY
@@ -216,7 +216,7 @@ if (NOT SDL_FOUND)
               ${SDLDIR}/lib/win32/mingw/libSDLmain.a
           )
         endif (MINGW)
-    endif (WINDOWS)
+    endif (WIN32)
 
     if (NOT LUGARU_HAS_INTERNAL_SDL)
         message(ERROR "We don't have a prebuilt SDL for this platform.")