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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-08-25 16:50:52 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-08-25 16:50:52 +0400
commitd48e4fc92be346810baa8cac595ab0a735882a87 (patch)
treec0cede3a981fa30acbfcb1b176017a20a08dfffe
parent88481246f080c788f7fe85d658f91d2fe44ccae0 (diff)
Cycles: fix linux build issue, link order was wrong.
-rw-r--r--build_files/cmake/macros.cmake7
-rw-r--r--intern/cycles/blender/CMakeLists.txt22
-rw-r--r--source/creator/CMakeLists.txt22
3 files changed, 19 insertions, 32 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index ab63c6f51a7..15198b2f67d 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -282,12 +282,7 @@ macro(setup_liblinks
target_link_libraries(${target} ${OPENIMAGEIO_LIBRARY})
endif()
if(WITH_BOOST)
- if(BOOST_CUSTOM)
- set(${boost_libs} ${BOOST_LIBRARIES})
- target_link_libraries(${target} ${boost_libs})
- else()
- target_link_libraries(${target} ${BOOST_LIBRARIES})
- endif()
+ target_link_libraries(${target} ${BOOST_LIBRARIES})
endif()
if(WITH_IMAGE_OPENEXR)
if(WIN32 AND NOT UNIX)
diff --git a/intern/cycles/blender/CMakeLists.txt b/intern/cycles/blender/CMakeLists.txt
index 324d35d5360..a035d8fde6b 100644
--- a/intern/cycles/blender/CMakeLists.txt
+++ b/intern/cycles/blender/CMakeLists.txt
@@ -31,30 +31,8 @@ include_directories(
${PYTHON_INCLUDE_DIRS}
${GLEW_INCLUDE_PATH})
-set(LIBRARIES
- cycles_render
- cycles_bvh
- cycles_device
- cycles_kernel
- cycles_util
- cycles_subd)
-
-if(WITH_CYCLES_OSL)
- list(APPEND LIBRARIES cycles_kernel_osl ${OSL_LIBRARIES})
-endif()
-
-if(WITH_CYCLES_PARTIO)
- list(APPEND LIBRARIES ${PARTIO_LIBRARIES})
-endif()
-
-if(WITH_CYCLES_OPENCL)
- list(APPEND LIBRARIES ${OPENCL_LIBRARIES})
-endif()
-
blender_add_lib(bf_intern_cycles "${sources}" "" "")
-
add_dependencies(bf_intern_cycles bf_rna)
-target_link_libraries(bf_intern_cycles ${LIBRARIES})
delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${addonfiles}" ${CYCLES_INSTALL_PATH})
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 9e9a1ef7db1..0c5f15c130b 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -729,6 +729,16 @@ if(WITH_MOD_FLUID)
list(APPEND BLENDER_LINK_LIBS bf_intern_elbeem)
endif()
+if(WITH_CYCLES)
+ list(APPEND BLENDER_LINK_LIBS
+ cycles_render
+ cycles_bvh
+ cycles_device
+ cycles_kernel
+ cycles_util
+ cycles_subd)
+endif()
+
#if(UNIX)
# Sort libraries
@@ -830,6 +840,14 @@ endif()
bf_blenfont
bf_intern_audaspace
bf_intern_mikktspace
+
+ bf_intern_cycles
+ cycles_render
+ cycles_bvh
+ cycles_device
+ cycles_kernel
+ cycles_util
+ cycles_subd
)
if(WITH_MOD_CLOTH_ELTOPO)
@@ -856,10 +874,6 @@ endif()
list(APPEND BLENDER_SORTED_LIBS bf_quicktime)
endif()
- if(WITH_CYCLES)
- list(APPEND BLENDER_SORTED_LIBS bf_intern_cycles)
- endif()
-
foreach(SORTLIB ${BLENDER_SORTED_LIBS})
set(REMLIB ${SORTLIB})
foreach(SEARCHLIB ${BLENDER_LINK_LIBS})