Paste P554

Potential fix for T53008
ActivePublic

Authored by Julian Eisel (Severin) on Nov 4 2017, 2:33 AM.
Tags
None
Subscribers
None
1diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
2index 78257cb7d1e..dbcc2e06022 100644
3--- a/source/creator/CMakeLists.txt
4+++ b/source/creator/CMakeLists.txt
5@@ -412,11 +412,17 @@ if(WITH_OPENCOLORIO)
6​ )
7​ endif()
8
9-# Add default workspaces.blend to build (under [version]/datafiles
10+# Add default workspaces.blend to build datafiles. Copy to two locations, so it works
11+# for dev & regular builds (see weird dev-build exception in get_path_system()).
12​ install(
13​ FILES ${CMAKE_SOURCE_DIR}/release/datafiles/workspaces.blend
14​ DESTINATION ${TARGETDIR_VER}/datafiles
15​ )
16+configure_file(
17+ ${CMAKE_SOURCE_DIR}/release/datafiles/workspaces.blend
18+ ${CMAKE_BINARY_DIR}/release/datafiles/workspaces.blend
19+ COPYONLY
20+)
21
22​ # helpful tip when using make
23​ if("${CMAKE_GENERATOR}" MATCHES ".*Makefiles.*")