From cd09d91ec15328e18573885cec04a342e8469035 Mon Sep 17 00:00:00 2001 From: fmckenna Date: Tue, 24 Sep 2024 12:47:22 -0700 Subject: [PATCH] fmk - updating install of OpenSees to include init.tcl --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30604201ab..b70febd0ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,6 +114,7 @@ else() find_package(TCL REQUIRED) find_package(Eigen3 REQUIRED) include_directories(${TCL_INCLUDE_DIR}) + set(TCL_INCLUDE_PATH ${TCL_INCLUDE_DIR}) set(TCL_LIBRARY ${TCL_LIBRARIES}) endif() @@ -741,6 +742,8 @@ target_link_libraries(OpenSeesPy # install (TARGETS OpenSees DESTINATION bin) +set (TCL_INIT_FILE "${TCL_INCLUDE_PATH}/../lib/tcl8.6/init.tcl") +install(FILES ${TCL_INIT_FILE} DESTINATION lib/tcl8.6) # Set selected executable to be built by default set_target_properties(${OPS_FINAL_TARGET} PROPERTIES EXCLUDE_FROM_ALL OFF)