CMake: fix linking with gtest & cycles enabled
This commit is contained in:
@@ -33,7 +33,6 @@ set(INC
|
||||
../../../../intern/clog
|
||||
../../../../intern/guardedalloc
|
||||
../../../../intern/opencolorio
|
||||
../../../../intern/cycles/blender
|
||||
)
|
||||
|
||||
set(INC_SYS
|
||||
@@ -167,6 +166,12 @@ if(WITH_COMPOSITOR)
|
||||
endif()
|
||||
|
||||
if(WITH_CYCLES)
|
||||
list(APPEND INC
|
||||
../../../../intern/cycles/blender
|
||||
)
|
||||
list(APPEND LIB
|
||||
bf_intern_cycles
|
||||
)
|
||||
add_definitions(-DWITH_CYCLES)
|
||||
endif()
|
||||
|
||||
|
@@ -57,7 +57,9 @@
|
||||
#include "BKE_main.h"
|
||||
#include "BKE_text.h"
|
||||
|
||||
#include "CCL_api.h"
|
||||
#ifdef WITH_CYCLES
|
||||
# include "CCL_api.h"
|
||||
#endif
|
||||
|
||||
#include "BPY_extern.h"
|
||||
|
||||
|
Reference in New Issue
Block a user