-
-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import cmake Packages in Windows Platform Will Enmurate All Compile Definitions in Exported CMakeLists.txt #4967
Comments
Please use |
Thanks for your reply. I have to use OpenCV with specific versions and options , so I can't simply use |
Only xmake-repo packages support config options. But you can set some cmake configuarion. https://xmake.io/#/package/local_package?id=default-switch |
Xmake Version
xmake v2.8.9+HEAD.cb1b65054
Operating System Version and Architecture
Windows 11 22631.3296
Describe Bug
When using
add_requires
to import cmake packages and then useadd_packages
in Windows, generated CMakeLists.txt will enumerate all possible compile definition like this:Full CMakeLists.txt generated in Windows
Change platform into linux, generated CMakeLists.txt won't have these weird compile definitions.
Full CMakeLists.txt generated in Linux
Expected Behavior
In Windows, generated CMakeLists.txt with cmake "Local Package" should not have all possible definitions in
target_compile_definitions
Project Configuration
Additional Information and Error Logs
Use below commands to reproduce:
Info of Windows:
Info of Linux:
The text was updated successfully, but these errors were encountered: