From b46dcafa7aeef69389ce5f45fb7982a37191534c Mon Sep 17 00:00:00 2001 From: Martijn Berger Date: Sat, 25 Jan 2014 14:19:32 +0100 Subject: [PATCH] fix building cycles standalone on windows / cmake --- CMakeLists.txt | 2 +- intern/cycles/app/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 271b33d871d..ac2643bbea1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2258,7 +2258,7 @@ if(WITH_BLENDER OR WITH_PLAYER) add_subdirectory(extern) elseif(WITH_CYCLES_STANDALONE) add_subdirectory(intern/cycles) - if(WITH_CYCLES_STANDALONE_GUI) + if(NOT WITH_SYSTEM_GLEW) add_subdirectory(extern/glew) endif() endif() diff --git a/intern/cycles/app/CMakeLists.txt b/intern/cycles/app/CMakeLists.txt index ada5ea55fb2..64d710ef9d0 100644 --- a/intern/cycles/app/CMakeLists.txt +++ b/intern/cycles/app/CMakeLists.txt @@ -54,6 +54,7 @@ if(WITH_CYCLES_STANDALONE) cycles_xml.h ) add_executable(cycles ${SRC}) + list(APPEND LIBRARIES ${PLATFORM_LINKLIBS}) target_link_libraries(cycles ${LIBRARIES} ${CMAKE_DL_LIBS}) if(UNIX AND NOT APPLE)