Skip to content

Commit fa4864e

Browse files
committed
cmake: use pycsdiff_py${version} instead of pycsdiff${version}
.. so that it is more clear that it is the same version of the pycsdiff module but for different Python versions.
1 parent f5c3146 commit fa4864e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,16 @@ macro(build_pycsdiff version boost_python_lib_names)
143143
message(STATUS "Python ${version} binding enabled. "
144144
"The pycsdiff module will be built!")
145145

146-
add_library(pycsdiff${version} SHARED pycsdiff.cc)
147-
target_include_directories(pycsdiff${version} SYSTEM
146+
add_library(pycsdiff_py${version} SHARED pycsdiff.cc)
147+
target_include_directories(pycsdiff_py${version} SYSTEM
148148
PRIVATE ${Python${version}_INCLUDE_DIRS})
149-
target_link_libraries(pycsdiff${version} PRIVATE ${BOOST_PYTHON${version}})
149+
target_link_libraries(pycsdiff_py${version} PRIVATE ${BOOST_PYTHON${version}})
150150

151151
# remove 'lib' prefix so that `python -c 'import pycsdiff' works`
152-
set_target_properties(pycsdiff${version} PROPERTIES
152+
set_target_properties(pycsdiff_py${version} PROPERTIES
153153
PREFIX "" OUTPUT_NAME "pycsdiff")
154154

155-
install(TARGETS pycsdiff${version}
155+
install(TARGETS pycsdiff_py${version}
156156
DESTINATION ${Python${version}_SITEARCH})
157157
endmacro()
158158

0 commit comments

Comments
 (0)