Skip to content

Conversation

@sheldonrobinson
Copy link
Contributor

Sorry about the late update.

Check if the cppjieba target already exists before creating it to avoid potential conflicts when this CMakeLists.txt is included multiple times.

@yanyiwu yanyiwu requested a review from Copilot July 18, 2025 11:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a guard condition to prevent duplicate creation of the cppjieba target in CMake. The guard ensures that the target is only created once when the CMakeLists.txt file is included multiple times in a project.

Key changes:

  • Added if(NOT TARGET cppjieba) guard around the target creation
  • Prevents potential CMake configuration conflicts in multi-include scenarios

@yanyiwu yanyiwu merged commit 9b40903 into yanyiwu:master Jul 18, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants