Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-06-28 02:48:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-06-28 02:48:39 +0400
commit35ac032b55ee0236b4093b932cfca4644b2a3cda (patch)
treee14d86df20ac963131f824e0f7aa4d7b57b30ae1 /CMake
parent67073db49ced1bb561783a7f4cb862c1bad0e865 (diff)
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.
Diffstat (limited to 'CMake')
-rw-r--r--CMake/macros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/macros.cmake b/CMake/macros.cmake
index bc8892e4b99..44fc2903875 100644
--- a/CMake/macros.cmake
+++ b/CMake/macros.cmake
@@ -61,7 +61,7 @@ MACRO(SETUP_LIBLINKS
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${PLATFORM_LINKFLAGS} ")
#TARGET_LINK_LIBRARIES(${target} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ${PYTHON_LIB} ${PYTHON_LINKFLAGS} ${JPEG_LIB} ${PNG_LIB} ${ZLIB_LIB} ${SDL_LIB} ${LLIBS})
- TARGET_LINK_LIBRARIES(${target} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ${PYTHON_LINKFLAGS} ${JPEG_LIB} ${PNG_LIB} ${ZLIB_LIB} ${SDL_LIB} ${LLIBS})
+ TARGET_LINK_LIBRARIES(${target} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ${PYTHON_LINKFLAGS} ${JPEG_LIBRARY} ${PNG_LIBRARIES} ${ZLIB_LIBRARIES} ${SDL_LIB} ${LLIBS})
# since we are using the local libs for python when compiling msvc projects, we need to add _d when compiling debug versions