CMake: Move genrated dna.c and cmake_blender_libs.txt to binary directories to keep...
[blender.git] / CMake / macros.cmake
index f5b6d1214a69c9f8b49db62af942968cf40a6538..6b6837d25f0526667e29a74f7552f814335cdd95 100644 (file)
@@ -34,7 +34,7 @@ MACRO(BLENDERLIB
   BLENDERLIB_NOLIST(${name} "${sources}" "${includes}")
 
   # Add to blender's list of libraries
-  FILE(APPEND ${CMAKE_SOURCE_DIR}/cmake_blender_libs.txt "${name};")
+  FILE(APPEND ${CMAKE_BINARY_DIR}/cmake_blender_libs.txt "${name};")
 ENDMACRO(BLENDERLIB)
 
 MACRO(SETUP_LIBDIRS)