-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
export cmake option when developer use CMake FetchContent
For example, use the following cmake config ``` include(FetchContent) FetchContent_Declare( yalantinglibs GIT_REPOSITORY https://github.com/alibaba/yalantinglibs.git GIT_TAG xxx # use the least commit id GIT_SHALLOW 1 # optional ( --depth=1 ) ) FetchContent_MakeAvailable(yalantinglibs) add_executable(demo main.cpp) target_link_libraries(demo PRIVATE yalantinglibs) ``` you can use `cmake -DENABLE_STRUCT_PACK_UNPORTABLE_TYPE=ON ..`, the option `ENABLE_STRUCT_PACK_UNPORTABLE_TYPE=ON` will be used when building yalantinglibs
- Loading branch information
1 parent
a920fce
commit c0e48cf
Showing
2 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters