Skip to content

Commit

Permalink
Fix a couple of errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoconni committed Nov 4, 2024
1 parent 10e9271 commit c9896bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/jsbsim.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ cdef extern from "input_output/FGPropertyManager.h" namespace "JSBSim":
c_FGPropertyNode* GetNode(const string& path, bool create)
bool HasNode(const string& path) except +convertJSBSimToPyExc

cdef extern from "PyLog.h" namespace "JSBSim":
cdef extern from "PyLogger.h" namespace "JSBSim":
cdef PyObject* FGLogger_PyClass
cdef PyObject* LogLevel_PyClass
cdef PyObject* LogFormat_PyClass
Expand Down
4 changes: 2 additions & 2 deletions python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ if 'sdist' not in dist.commands and compiler.find_library_file([library_path],
else:
source_file = '_jsbsim.pyx'

ext_kwargs = { 'sources': [source_file],
ext_kwargs = { 'sources': [source_file, 'PyLogger.cxx'],
'include_dirs': ['src'],
'libraries': ['JSBSim'] + link_libraries,
'library_dirs': [library_path],
Expand All @@ -138,7 +138,7 @@ else:
else:
compile_flags = ['-D'+flag for flag in convert_CMake_list_to_Python_list('${JSBSIM_COMPILE_DEFINITIONS};NDEBUG')]

ext_kwargs = { 'sources': convert_CMake_list_to_Python_list('_jsbsim.pyx;${JSBSIM_SOURCE_FILES}'),
ext_kwargs = { 'sources': convert_CMake_list_to_Python_list('_jsbsim.pyx;PyLogger.cxx;${JSBSIM_SOURCE_FILES}'),
'libraries': link_libraries,
'include_dirs': ['src', 'src/simgear/xml'],
'extra_compile_args': compile_flags }
Expand Down

0 comments on commit c9896bd

Please sign in to comment.