From db552616be95430d535b20b05b5427a7e6325aef Mon Sep 17 00:00:00 2001 From: Peter M. Groen Date: Thu, 21 Apr 2022 15:46:00 +0200 Subject: [PATCH] Add switch for building a shared or static library --- library.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.cmake b/library.cmake index 8e07552..627dcb7 100644 --- a/library.cmake +++ b/library.cmake @@ -12,7 +12,7 @@ if (${PROJECT_NAME}_CURRENT_BINARY_DIR) endif() message(STATUS "CURRENT_PROJECT_BINARY_DIR : ${CURRENT_PROJECT_BINARY_DIR}") -if(DEFINED ${BUILD_STATIC}) +if( ${BUILD_STATIC} ) if(${BUILD_STATIC} STREQUAL "ON") set(SHARED_OR_STATIC "STATIC") else() -- libgit2 0.21.4