File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -154,15 +154,15 @@ endif()
154
154
155
155
file (COPY "${CMAKE_CURRENT_SOURCE_DIR} /python3.12/include/python3.12" DESTINATION "${CMAKE_CURRENT_BINARY_DIR} /_pyinclude" )
156
156
file (COPY "${CMAKE_CURRENT_SOURCE_DIR} /python3.12/${PYTHON_ARCH} /${PYTHON_ABSTRACT_BUILD_TYPE_LOWER} /include/pyconfig.h" DESTINATION "${CMAKE_CURRENT_BINARY_DIR} /_pyinclude/python3.12" )
157
- add_library (pyinclude INTERFACE )
158
- target_include_directories (pyinclude INTERFACE "${CMAKE_CURRENT_BINARY_DIR} /_pyinclude/python3.12" )
157
+
158
+ target_include_directories (python3 INTERFACE "${CMAKE_CURRENT_BINARY_DIR} /_pyinclude/python3.12" )
159
159
if (MSVC )
160
- target_compile_options (pyinclude INTERFACE /wd4100)
160
+ target_compile_options (python3 INTERFACE /wd4100)
161
161
else ()
162
- target_compile_options (pyinclude INTERFACE -Wno-unused-parameter)
162
+ target_compile_options (python3 INTERFACE -Wno-unused-parameter)
163
163
endif ()
164
164
165
- target_link_libraries (${PROJECT_NAME} PRIVATE python3 pyinclude )
165
+ target_link_libraries (${PROJECT_NAME} PRIVATE python3)
166
166
167
167
target_compile_definitions (${PROJECT_NAME} PRIVATE
168
168
PY3LM_PLATFORM_WINDOWS=$<BOOL :${WIN32} >
You can’t perform that action at this time.
0 commit comments