Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-21 16:13:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-21 16:13:08 +0300
commit9ef0eed4b64325092dc90bf2db0ca9825fd94f83 (patch)
tree179c4ae843eb3192683457e19d2ea903b8690b70 /CMakeLists.txt
parentef60ae95215ef9fe88a93e97f70413e8075506e4 (diff)
build python module without binreloc, add dummy argv[0] to initialize bprogname.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt18
1 files changed, 12 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e4796187a2b..ce881f24e97 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -161,6 +161,9 @@ endif()
TEST_SSE_SUPPORT()
+# linux only, not cached
+set(WITH_BINRELOC OFF)
+
# disabled for now, not supported
# option(WITH_WEBPLUGIN "Enable Web Plugin (Unix only)" OFF)
@@ -346,12 +349,15 @@ if(UNIX AND NOT APPLE)
set(LLIBS "-lutil -lc -lm -lpthread -lstdc++ ${X11_X11_LIB} ${X11_Xinput_LIB}")
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
- # BSD's dont use libdl.so
- list(APPEND LLIBS -ldl)
-
- # binreloc is linux only
- set(BINRELOC ${CMAKE_SOURCE_DIR}/extern/binreloc)
- set(BINRELOC_INC ${BINRELOC}/include)
+ if(NOT WITH_PYTHON_MODULE)
+ # BSD's dont use libdl.so
+ list(APPEND LLIBS -ldl)
+
+ # binreloc is linux only
+ set(BINRELOC ${CMAKE_SOURCE_DIR}/extern/binreloc)
+ set(BINRELOC_INC ${BINRELOC}/include)
+ set(WITH_BINRELOC ON)
+ endif()
endif()
set(PLATFORM_LINKFLAGS "-pthread")