Skip to content

Commit

Permalink
Fix release build
Browse files Browse the repository at this point in the history
It seems I'd forgotten to include the library linking and the build event for the release build.
  • Loading branch information
Pharap authored Apr 2, 2022
1 parent 338f84a commit 86f39ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions SDLTemplate.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,14 @@
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
</ClCompile>
<Link>
<AdditionalDependencies>SDL2.lib;SDL2main.lib;SDL2_ttf.lib;SDL2_image.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
<PreBuildEvent>
<Command>COPY /Y "$(SolutionDir)$(SolutionName)\Lib\x86\*.dll" "$(TargetDir)*.dll"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
Expand All @@ -137,9 +142,14 @@
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
</ClCompile>
<Link>
<AdditionalDependencies>SDL2.lib;SDL2main.lib;SDL2_ttf.lib;SDL2_image.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
<PreBuildEvent>
<Command>COPY /Y "$(SolutionDir)$(SolutionName)\Lib\x64\*.dll" "$(TargetDir)*.dll"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="Main.cpp" />
Expand Down

0 comments on commit 86f39ed

Please sign in to comment.