Skip to content

Commit

Permalink
Fix 2 headers being compiled in VS 2013 and 2015
Browse files Browse the repository at this point in the history
The headers state_population_trigger.h and change_state_effect.h were marked as compilable source code (translation units). This led to linker errors, because they generated object files, which shadowed their .cpp counterparts.
  • Loading branch information
Bromeon authored and curds01 committed Apr 8, 2019
1 parent a41b089 commit 7f8da84
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions projects/VS2013/Menge/MengeCore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ xcopy /y $(TargetPath) $(ExeDir)
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\EventTriggerFactory.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\StateEvtTrigger.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\StateMemberTarget.h" />
<ClCompile Include="$(SrcDir)\mengeCore\Agents\Events\state_population_trigger.h" />
<ClCompile Include="$(SrcDir)\mengeCore\Agents\Events\change_state_effect.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\state_population_trigger.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\change_state_effect.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\ObstacleSets\ExplicitObstacleSet.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\ObstacleSets\ListObstacleSet.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\ObstacleSets\NavMeshObstacleSet.h" />
Expand Down
8 changes: 4 additions & 4 deletions projects/VS2013/Menge/MengeCore.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -821,12 +821,12 @@
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\StateMemberTarget.h">
<Filter>Header Files\Agents\Events</Filter>
</ClInclude>
<ClCompile Include="$(SrcDir)\mengeCore\Agents\Events\state_population_trigger.h">
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\state_population_trigger.h">
<Filter>Header Files\Agents\Events</Filter>
</ClCompile>
<ClCompile Include="$(SrcDir)\mengeCore\Agents\Events\change_state_effect.h">
</ClInclude>
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\change_state_effect.h">
<Filter>Header Files\Agents\Events</Filter>
</ClCompile>
</ClInclude>
<ClInclude Include="$(SrcDir)\mengeCore\Agents\ObstacleSets\ExplicitObstacleSet.h">
<Filter>Header Files\Agents\ObstacleSets</Filter>
</ClInclude>
Expand Down
4 changes: 2 additions & 2 deletions projects/VS2015/Menge/MengeCore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ xcopy /y $(TargetPath) $(ExeDir)
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\EventTriggerFactory.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\StateEvtTrigger.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\StateMemberTarget.h" />
<ClCompile Include="$(SrcDir)\mengeCore\Agents\Events\state_population_trigger.h" />
<ClCompile Include="$(SrcDir)\mengeCore\Agents\Events\change_state_effect.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\state_population_trigger.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\change_state_effect.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\ObstacleSets\ExplicitObstacleSet.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\ObstacleSets\ListObstacleSet.h" />
<ClInclude Include="$(SrcDir)\mengeCore\Agents\ObstacleSets\NavMeshObstacleSet.h" />
Expand Down
8 changes: 4 additions & 4 deletions projects/VS2015/Menge/MengeCore.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -821,12 +821,12 @@
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\StateMemberTarget.h">
<Filter>Header Files\Agents\Events</Filter>
</ClInclude>
<ClCompile Include="$(SrcDir)\mengeCore\Agents\Events\state_population_trigger.h">
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\state_population_trigger.h">
<Filter>Header Files\Agents\Events</Filter>
</ClCompile>
<ClCompile Include="$(SrcDir)\mengeCore\Agents\Events\change_state_effect.h">
</ClInclude>
<ClInclude Include="$(SrcDir)\mengeCore\Agents\Events\change_state_effect.h">
<Filter>Header Files\Agents\Events</Filter>
</ClCompile>
</ClInclude>
<ClInclude Include="$(SrcDir)\mengeCore\Agents\ObstacleSets\ExplicitObstacleSet.h">
<Filter>Header Files\Agents\ObstacleSets</Filter>
</ClInclude>
Expand Down

0 comments on commit 7f8da84

Please sign in to comment.