Browse Source

Merge pull request #171 from dwimsey/feature/python-with-static-librocket

Minor fix to the way python modules are built, this prevents the build process from linking the python rocket libraries with any executables as they are meant to always be loaded dynamically at runtime.
David Wimsey 11 years ago
parent
commit
6f17a257a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Build/CMakeLists.txt

+ 1 - 1
Build/CMakeLists.txt

@@ -181,7 +181,7 @@ if(BUILD_PYTHON_BINDINGS)
     foreach(library ${LIBRARIES})
         set(NAME _rocket${library})
 
-        add_library(${NAME} ${Py${library}_SRC_FILES}
+        add_library(${NAME} MODULE ${Py${library}_SRC_FILES}
                             ${Py${library}_HDR_FILES}
                             ${Py${library}_PUB_HDR_FILES}
         )