From dfb301c1ba37d97fe1506e629fb161a77e12290e Mon Sep 17 00:00:00 2001 From: arcum42 Date: Tue, 4 May 2010 20:28:34 +0000 Subject: [PATCH] Fix the cmake build of zlib, and force use of the internal copies of a few of the libraries for the moment. (If the cmake build starts working properly, I'll probably reverse that, but for the moment I want them as similar as possible.) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2946 96395faa-99c1-11dd-bbfe-3dabce05a288 --- 3rdparty/zlib/CMakeLists.txt | 48 +++++++++++++++++++----------------- cmake/SearchForStuff.cmake | 30 +++++++++++----------- 2 files changed, 41 insertions(+), 37 deletions(-) diff --git a/3rdparty/zlib/CMakeLists.txt b/3rdparty/zlib/CMakeLists.txt index a6ad6fbb71..2eabf306a7 100644 --- a/3rdparty/zlib/CMakeLists.txt +++ b/3rdparty/zlib/CMakeLists.txt @@ -23,31 +23,35 @@ endif(CMAKE_BUILD_TYPE STREQUAL Release) # variable with all sources of this library set(zlibSources - adler32.c - compress.c - crc32.c - deflate.c - gzio.c - infback.c - inffast.c - inflate.c - inftrees.c - trees.c - uncompr.c - zutil.c) +compress.c +deflate.c +gzwrite.c +trees.c +crc32.c +gzlib.c +infback.c +inftrees.c +adler32.c +gzclose.c +gzread.c +inffast.c +inflate.c +uncompr.c +zutil.c) # variable with all headers of this library set(zlibHeaders - crc32.h - deflate.h - inffast.h - inffixed.h - inflate.h - inftrees.h - trees.h - zconf.h - zlib.h - zutil.h) +gzguts.h +inffast.h +inflate.h +zconf.h +zlib.h +zutil.h +deflate.h +inffixed.h +trees.h +crc32.h +inftrees.h ) # add library add_library(${zlibName} STATIC ${zlibSources} ${zlibHeaders}) diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake index 7d1d7b2f29..a785b878c2 100644 --- a/cmake/SearchForStuff.cmake +++ b/cmake/SearchForStuff.cmake @@ -52,13 +52,13 @@ endif(wxWidgets_FOUND) find_package(ZLIB) # if we found zlib on the system, use it else use project one -if(ZLIB_FOUND) - # add zlib include directories - include_directories(${ZLIB_INCLUDE_DIRS}) -else(ZLIB_FOUND) +#if(ZLIB_FOUND) +# # add zlib include directories +# include_directories(${ZLIB_INCLUDE_DIRS}) +#else(ZLIB_FOUND) # use project one set(projectZLIB TRUE) -endif(ZLIB_FOUND) +#endif(ZLIB_FOUND) #------------------------------------------------------------ @@ -102,13 +102,13 @@ find_package(BZip2) # if we found bzip2 on the system, # use it else use project one -if(BZIP2_FOUND) - # add zlib include directories - include_directories(${BZIP2_INCLUDE_DIR}) -else(BZIP2_FOUND) +#if(BZIP2_FOUND) +# # add zlib include directories +# include_directories(${BZIP2_INCLUDE_DIR}) +#else(BZIP2_FOUND) # use project one set(projectBZip2 TRUE) -endif(BZIP2_FOUND) +#endif(BZIP2_FOUND) #------------------------------------------------------------ @@ -172,16 +172,16 @@ endif(SDL_FOUND) #include(${PROJECT_SOURCE_DIR}/cmake/FindSoundTouch.cmake) # found SoundTouch -if(SOUNDTOUCH_FOUND) - # add SoundTouch include directories - include_directories(${SOUNDTOUCH_INCLUDE_DIR}) -else(SOUNDTOUCH_FOUND) +#if(SOUNDTOUCH_FOUND) +# # add SoundTouch include directories +# include_directories(${SOUNDTOUCH_INCLUDE_DIR}) +#else(SOUNDTOUCH_FOUND) # use project one set(projectSoundTouch TRUE) # found set(SOUNDTOUCH_FOUND TRUE) -endif(SOUNDTOUCH_FOUND) +#endif(SOUNDTOUCH_FOUND) #------------------------------------------------------------