소스 검색

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 년 전
부모
커밋
6f17a257a6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}
         )