[Bf-blender-cvs] [f01c71e1d99] master: Fix: Build issue with draco.

Ray Molenkamp noreply at git.blender.org
Thu Apr 11 15:20:20 CEST 2019


Commit: f01c71e1d99d9f4ab0b4232215ddcacc90548819
Author: Ray Molenkamp
Date:   Thu Apr 11 07:20:14 2019 -0600
Branches: master
https://developer.blender.org/rBf01c71e1d99d9f4ab0b4232215ddcacc90548819

Fix: Build issue with draco.

DRACO_LIB_NAME was undefined, better use the proper cmake variable for it.

===================================================================

M	source/creator/CMakeLists.txt

===================================================================

diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 36da605b4ba..a8fef16f096 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -636,7 +636,7 @@ if(UNIX AND NOT APPLE)
 
 	if(WITH_DRACO)
 		install(
-			PROGRAMS ${CMAKE_BINARY_DIR}/lib/lib${DRACO_LIB_NAME}.so
+			PROGRAMS $<TARGET_FILE:extern_draco>
 			DESTINATION ${TARGETDIR_VER}/python/lib/python${PYTHON_VERSION}/site-packages
 		)
 	endif()
@@ -841,7 +841,7 @@ elseif(WIN32)
 
 	if(WITH_DRACO)
 		install(
-			PROGRAMS ${CMAKE_BINARY_DIR}/lib/$<CONFIG>/${DRACO_LIB_NAME}.dll
+			PROGRAMS $<TARGET_FILE:extern_draco>
 			DESTINATION ${TARGETDIR_VER}/python/lib/site-packages
 		)
 	endif()



More information about the Bf-blender-cvs mailing list