correctly handle Tcl stub library if available
This commit is contained in:
@ -94,6 +94,11 @@ if(BUILD_SWIG_TCL)
|
|||||||
if(NOT TCL_FOUND)
|
if(NOT TCL_FOUND)
|
||||||
message(FATAL_ERROR "Tcl development headers and libraries are required")
|
message(FATAL_ERROR "Tcl development headers and libraries are required")
|
||||||
endif()
|
endif()
|
||||||
|
find_package(TclStub)
|
||||||
|
if(TCL_STUB_LIBRARY)
|
||||||
|
target_compile_definitions(tcllammps PRIVATE USE_TCL_STUBS)
|
||||||
|
target_link_libraries(tcllammps PRIVATE ${TCL_STUB_LIBRARY})
|
||||||
|
endif()
|
||||||
target_include_directories(tcllammps PRIVATE ${TCL_INCLUDE_PATH})
|
target_include_directories(tcllammps PRIVATE ${TCL_INCLUDE_PATH})
|
||||||
swig_link_libraries(tcllammps PRIVATE lammps ${TCL_LIBRARY})
|
swig_link_libraries(tcllammps PRIVATE lammps ${TCL_LIBRARY})
|
||||||
# build extended Tcl shell binary
|
# build extended Tcl shell binary
|
||||||
|
|||||||
Reference in New Issue
Block a user