Skip to content

Commit

Permalink
Swig add library command used. (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
william-dawson authored Apr 10, 2019
1 parent 61b5d42 commit cf19544
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Swig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ if (SWIG_FOUND)
SET_SOURCE_FILES_PROPERTIES(${file} PROPERTIES CPLUSPLUS ON)
endforeach(file)
set(CMAKE_SWIG_OUTDIR ${CMAKE_BINARY_DIR}/python)
swig_add_module(NTPolySwig python ${Swigsrc})
if(${CMAKE_VERSION} VERSION_LESS "3.8.0")
swig_add_module(NTPolySwig python ${Swigsrc})
else()
swig_add_library(NTPolySwig LANGUAGE python SOURCES ${Swigsrc})
endif()
swig_link_libraries(NTPolySwig NTPolyCPP NTPolyWrapper NTPoly
${PYTHON_LIBRARIES} ${TOOLCHAIN_LIBS})
set_target_properties(_NTPolySwig PROPERTIES
Expand Down

0 comments on commit cf19544

Please sign in to comment.