diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-16 07:11:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-16 07:15:18 +0300 |
commit | 813e470eac309a78d1f8cdc4a3abb0314b0ee5f3 (patch) | |
tree | 65bfb0ea60eb6f595b38fedcf33eb0a59f072cb0 /intern/cycles/cmake/macros.cmake | |
parent | bb6b7dd4adebcdacfeabdaf26daa5e0d49079f67 (diff) |
CMake: cleanup, arg rename, add definitions last
Diffstat (limited to 'intern/cycles/cmake/macros.cmake')
-rw-r--r-- | intern/cycles/cmake/macros.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/intern/cycles/cmake/macros.cmake b/intern/cycles/cmake/macros.cmake index f3ca06ac6b8..ed4c0e48c03 100644 --- a/intern/cycles/cmake/macros.cmake +++ b/intern/cycles/cmake/macros.cmake @@ -6,7 +6,12 @@ function(cycles_set_solution_folder target) endif() endfunction() -macro(cycles_add_library target) +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() + endif() cycles_set_solution_folder(${target}) endmacro() |