Skip to content

Commit 01cebfe

Browse files
authored
Update extension foreach platform
1 parent c99b31b commit 01cebfe

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,14 @@ target_link_libraries(extending PRIVATE
4747
${LIBWIN}serialport${WIN64}
4848
)
4949

50-
set_target_properties(extending PROPERTIES
51-
PREFIX ""
52-
SUFFIX ".pyd"
53-
)
5450

51+
if(PLATFORM STREQUAL "win")
52+
set_target_properties(extending PROPERTIES
53+
PREFIX ""
54+
SUFFIX ".pyd"
55+
)
56+
else()
57+
set_target_properties(extending PROPERTIES
58+
PREFIX ""
59+
)
60+
endif()

0 commit comments

Comments
 (0)