vcpkg/ports/libsbml/test-shared.diff
Kai Pastor 4ff2d52566
[check,libsbml] Update, port fixes (#34656)
* [libsbml] Update, port fixes

* [check] Follow VCPKG_LIBRARY_LINKAGE

* [check] Don't install checkmk

* [check] Burn-in dllimport

* [libsbml] Devendor dirent

* [libsbml] Burn-in library linkage

* Finish

* Fix typo

* [libsbml] Shorten patch
2023-10-24 09:09:15 -07:00

15 lines
532 B
Diff

diff --git a/src/sbml/test/CMakeLists.txt b/src/sbml/test/CMakeLists.txt
index 7a408d7..462d58a 100644
--- a/src/sbml/test/CMakeLists.txt
+++ b/src/sbml/test/CMakeLists.txt
@@ -49,6 +49,9 @@ if (EXTRA_INCLUDE_DIRS)
include_directories(${EXTRA_INCLUDE_DIRS})
endif(EXTRA_INCLUDE_DIRS)
+if(NOT TARGET ${LIBSBML_LIBRARY}-static)
+ add_library(${LIBSBML_LIBRARY}-static ALIAS ${LIBSBML_LIBRARY})
+endif()
add_executable(test_sbml_sbml ${TEST_FILES})
target_link_libraries(test_sbml_sbml ${LIBSBML_LIBRARY}-static CHECK::CHECK)