CMake patch from Alexander Neundorf
authorCampbell Barton <ideasman42@gmail.com>
Sat, 27 Jun 2009 22:48:39 +0000 (22:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 27 Jun 2009 22:48:39 +0000 (22:48 +0000)
commit35ac032b55ee0236b4093b932cfca4644b2a3cda
treee14d86df20ac963131f824e0f7aa4d7b57b30ae1
parent67073db49ced1bb561783a7f4cb862c1bad0e865
CMake patch from Alexander Neundorf

-under UNIX, it uses FIND_PACKAGE() to find the jpg, png and zlib libraries

-it removes the explictely listed search paths, which are already searched by
default, so it is not necessary to list them again explicitely

-it removes the include directories /usr/include
and /usr/local/include. /usr/include is used by default, all other
directories should be searched via find_package/find_file and then added to
the include directories.

-replaces the include() commands for the FindXXX.cmake
modules with the appropriate find_package(Foo) calls.
This doesn't change the behaviour, but gives more features.
E.g. you could now say
find_package(JPEG REQUIRED)
and cmake will abort with an error if the package is not found.
Also it makes it clearer what is going on.

Additionally the patch removes the line
 INCLUDE(${CMAKE_ROOT}/Modules/Platform/Windows-cl.cmake)
in the Windows if-branch.
Why was this there ? This file should be included anyway under Windows when
using the MS compiler.
CMake/macros.cmake
CMakeLists.txt