From 2b26941540406a54c4849101413f46ef56655efe Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 7 Jul 2022 18:25:48 +0200 Subject: [PATCH] cmake: polyseed: prefer static --- cmake/FindPolyseed.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindPolyseed.cmake b/cmake/FindPolyseed.cmake index 7879ff3..54a7101 100644 --- a/cmake/FindPolyseed.cmake +++ b/cmake/FindPolyseed.cmake @@ -1,10 +1,10 @@ find_path(POLYSEED_INCLUDE_DIR polyseed.h) -find_library(POLYSEED_LIBRARY polyseed) +find_library(POLYSEED_LIBRARY NAMES libpolyseed.a polyseed) if (NOT POLYSEED_INCLUDE_DIR OR NOT POLYSEED_LIBRARY) MESSAGE(STATUS "Could not find installed Polyseed, using submodule instead") set(Polyseed_SUBMODULE "ON") set(POLYSEED_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/third-party/polyseed/include) - set(POLYSEED_LIBRARY polyseed) + set(POLYSEED_LIBRARY polyseed_static) endif() message(STATUS "POLYSEED PATH ${POLYSEED_INCLUDE_DIR}") message(STATUS "POLYSEED LIBARY ${POLYSEED_LIBRARY}") \ No newline at end of file