Skip to content

Commit 2b57983

Browse files
committed
Potential Windows compilation fix
1 parent ebeb2d5 commit 2b57983

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/libpsl.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ endif()
5353
list(APPEND CMAKE_LIBRARY_PATH "${LIBPSL_INSTALL_DIR}/lib64")
5454
list(APPEND CMAKE_LIBRARY_PATH "${LIBPSL_INSTALL_DIR}/lib")
5555
list(APPEND CMAKE_INCLUDE_PATH "${LIBPSL_INSTALL_DIR}/include")
56+
57+
# Workaround for Windows compilation.
58+
# Ref: https://github.com/microsoft/vcpkg/pull/38847/files#diff-922fe829582a7e5acf5b0c35181daa63064fc12a2c889c5d89a19e5e02113f1bL44
59+
add_compile_definitions(PSL_STATIC=1)

0 commit comments

Comments
 (0)