The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=14029 ====================================================================== Reported By: Paul "TBBle" Hampson Assigned To: ====================================================================== Project: CMake Issue ID: 14029 Category: Modules Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2013-03-19 22:34 EDT Last Modified: 2013-03-19 22:34 EDT ====================================================================== Summary: FindSDL and FindSDL_image modules cannot find the SDL-distributed VC++ development libraries Description: The Visual C++ development packages for SDL and SDL_image include both x86 and x64 libraries with the same name, but in different paths.
The current FindSDL and FindSDL_image Modules do not handle this correctly, and fail to locate them. Steps to Reproduce: Grab the SDL-distributed development packages for Visual Studio: http://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip (from http://www.libsdl.org/download-1.2.php) http://www.libsdl.org/projects/SDL_image/release/SDL_image-devel-1.2.12-VC.zip (from http://www.libsdl.org/projects/SDL_image/) Set SDLDIR and SDLIMAGEDIR to the top level of those extracted zips. Build a CMake project that uses FIND_PACKAGE( SDL REQUIRED ) FIND_PACKAGE( SDL_image REQUIRED ) The CMake invocation will fail Additional Information: The fix I have locally (against 2.8.11 rc1) is basically the same for both modules: I add: if(CMAKE_GENERATOR MATCHES Win64) set(MSVC_DEVEL_PATHSUFFIX lib/x64) else() set(MSVC_DEVEL_PATHSUFFIX lib/x86) endif() before the find_library blocks, and then in the find_library invocations, change PATH_SUFFIXES to: PATH_SUFFIXES lib ${MSVC_DEVEL_PATHSUFFIX} That's been working fine for me here. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2013-03-19 22:34 Paul "TBBle" HampsonNew Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
