Skip to content

Commit

Permalink
Merge branch 'updateExternals' of https://github.com/lucapegolotti/Si…
Browse files Browse the repository at this point in the history
…mVascular into updateExternals
  • Loading branch information
Marsden Lab authored and Marsden Lab committed Oct 21, 2023
2 parents a6fa691 + 5e7d727 commit d04cacb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Code/CMake/Externals/TINYXML2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ if(SV_USE_${proj})
endif()
endif()

# temporary fix: there is some inconsistency between TINYXML2 and tinyxml2.
# These few lines allow adding tinyxml2 to the startup script in the CMakeList
# in Code/Scripts
set(SV_tinyxml2_DIR ${SV_${proj}_DIR})
set(SV_INSTALL_tinyxml2_LIBRARY_DIR "${SV_${proj}_DIR}/lib")

set(tinyxml2_DIR ${${proj}_DIR})

# No version in tinyxml2 config files, leave version out
Expand All @@ -80,7 +86,6 @@ if(SV_USE_${proj})
set(TINYXML2_LIBRARY "${SV_${proj}_DIR}/lib/libtinyxml2.dylib")
endif()

# Set SV_HDF5_DIR to the directory that was found to contain HDF5
set(SV_${proj}_DIR ${${proj}_DIR})
endif()
#-----------------------------------------------------------------------------
2 changes: 1 addition & 1 deletion Code/Scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ foreach(proj ${SV_EXTERNAL_SHARED_LIBS})

# on unix systems we only need this path if its installed (moved)
# if this library was not specified USE_SYSTEM, it will need to be installed, and the path updated.
if(SV_INSTALL_${proj}_LIBRARY_DIR)
if(SV_INSTALL_${proj}_LIBRARY_DIR)
#if there is an install library directory, add it to the path for installation, it will be installed there.
if(SV_${proj}_DIR)
append_env_string_concat(${ENV_LIBRARY_PATH_VARIABLE} "${SV_${proj}_DIR}/lib" developer_script_string)
Expand Down

0 comments on commit d04cacb

Please sign in to comment.