Skip to content

Commit

Permalink
Merge pull request #685 from claudioperez/contrib-src
Browse files Browse the repository at this point in the history
cmp - CMake; no longer link found Tcl if Conan has been run.
  • Loading branch information
mhscott committed Oct 17, 2021
2 parents 09546da + d2a4aea commit 0b02416
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,17 @@ target_link_libraries(OpenSees
${MYSQL_LIBRARIES}
)

target_include_directories(OpenSees PUBLIC ${TCL_INCLUDE_PATH})

#----------------------------
# OPS_Interp_Tcl
#----------------------------
# Add sources to OPS_Interp_Tcl target

target_include_directories(OPS_Interp_Tcl PUBLIC ${TCL_INCLUDE_PATH})
target_link_libraries(OPS_Interp_Tcl PRIVATE ${TCL_LIBRARIES})
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conanbuildinfo.cmake")
target_include_directories(OpenSees PUBLIC ${TCL_INCLUDE_PATH})
target_include_directories(OPS_Interp_Tcl PUBLIC ${TCL_INCLUDE_PATH})
target_link_libraries(OPS_Interp_Tcl PRIVATE ${TCL_LIBRARIES})
endif()

target_compile_definitions(OPS_Interp_Tcl PUBLIC _TCL85)

Expand Down

0 comments on commit 0b02416

Please sign in to comment.