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:
authorCampbell Barton <ideasman42@gmail.com>2019-04-16 13:36:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-16 13:36:44 +0300
commit31c2e69d49315717b522bca5a1fb48c05b1b86fa (patch)
tree124ba04df00c35c34b9e434ad9738646c239a9ea /intern/cycles/cmake
parent616597e7eaff81feb59aeede8e01133b127d57e8 (diff)
CMake: remove BLENDER_SORTED_LIBS
Use CMake's target_link_libraries instead of manually maintaining library dependencies in a single list. In practice adding new libraries often ended up being guess-work, now each library lists the libraries it uses. This was used for the game player executable so libraries could optionally link to stubs. If we need this functionality it can be done using target-properties as described in T46725.
Diffstat (limited to 'intern/cycles/cmake')
-rw-r--r--intern/cycles/cmake/macros.cmake6
1 files changed, 2 insertions, 4 deletions
diff --git a/intern/cycles/cmake/macros.cmake b/intern/cycles/cmake/macros.cmake
index ed4c0e48c03..ab8182ba4a7 100644
--- a/intern/cycles/cmake/macros.cmake
+++ b/intern/cycles/cmake/macros.cmake
@@ -8,10 +8,8 @@ endfunction()
macro(cycles_add_library target library_deps)
add_library(${target} ${ARGN})
- if(DEFINED WITHOUT_SORTED_LIBS AND WITHOUT_SORTED_LIBS)
- if(NOT ("${library_deps}" STREQUAL ""))
- target_link_libraries(${target} "${library_deps}")
- endif()
+ if(NOT ("${library_deps}" STREQUAL ""))
+ target_link_libraries(${target} "${library_deps}")
endif()
cycles_set_solution_folder(${target})
endmacro()