From 46c28e1460b49779e52ede2443b147de87e6517e Mon Sep 17 00:00:00 2001 From: "antares0982@gmail.com" Date: Sat, 27 Apr 2024 22:35:55 +0800 Subject: [PATCH] build: Add target properties for cjson library on Windows --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10313a5..a888be7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,3 +27,6 @@ endif(APPLE) if (MSVC) target_compile_options(cjson PUBLIC /std:c++17 /std:c17) endif(MSVC) +if(WIN32) + set_target_properties(cjson PROPERTIES SUFFIX ".pyd") +endif(WIN32)