Skip to content

Commit

Permalink
修复Windows编译
Browse files Browse the repository at this point in the history
  • Loading branch information
cgli authored and TylunasLi committed Mar 21, 2024
1 parent 580a31b commit 2f9dea2
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ if (${CMAKE_HOST_WIN32})
COMMAND ${CMAKE_COMMAND} -E make_directory tools/fastllm_pytools
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/tools/fastllm_pytools ${CMAKE_BINARY_DIR}/tools/fastllm_pytools/.
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/tools/scripts ${CMAKE_BINARY_DIR}/tools/.
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/fastllm_tools.dll ${CMAKE_BINARY_DIR}/tools/fastllm_pytools/.
COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/fastllm_tools.dll
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/$(Configuration)/fastllm_tools.dll ${CMAKE_BINARY_DIR}/tools/fastllm_pytools/.
COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/$(Configuration)/fastllm_tools.dll
)
else()
add_custom_command(
Expand Down
1 change: 0 additions & 1 deletion example/Win32Demo/fastllm-gpu.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@
<ClCompile Include="..\..\src\models\minicpm.cpp" />
<ClCompile Include="..\..\src\models\moss.cpp" />
<ClCompile Include="..\..\src\models\qwen.cpp" />
<ClCompile Include="..\..\src\pybinding.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\include\devices\cuda\fastllm-cuda.cuh">
Expand Down
3 changes: 0 additions & 3 deletions example/Win32Demo/fastllm-gpu.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@
<ClCompile Include="..\..\src\model.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="..\..\src\pybinding.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\basellm.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
Expand Down
1 change: 0 additions & 1 deletion example/Win32Demo/fastllm.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@
<ClCompile Include="..\..\src\models\minicpm.cpp" />
<ClCompile Include="..\..\src\models\moss.cpp" />
<ClCompile Include="..\..\src\models\qwen.cpp" />
<ClCompile Include="..\..\src\pybinding.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets" />
Expand Down
3 changes: 0 additions & 3 deletions example/Win32Demo/fastllm.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@
<ClCompile Include="..\..\src\model.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="..\..\src\pybinding.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\basellm.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
Expand Down

0 comments on commit 2f9dea2

Please sign in to comment.