Skip to content
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

[C++][CMake] Use arrow/util/config.h.cmake instead of add_definitions() #40221

Closed
kou opened this issue Feb 24, 2024 · 1 comment
Closed

[C++][CMake] Use arrow/util/config.h.cmake instead of add_definitions() #40221

kou opened this issue Feb 24, 2024 · 1 comment

Comments

@kou
Copy link
Member

kou commented Feb 24, 2024

Describe the enhancement requested

It's easy to maintain. add_definitions() is directory scope. So we have add_definitions(-DARROW_WITH_ZLIB) in cpp/src/arrow/ and cpp/src/parquet/

Component(s)

C++

kou added a commit to kou/arrow that referenced this issue Feb 24, 2024
kou added a commit to kou/arrow that referenced this issue Feb 24, 2024
kou added a commit that referenced this issue Feb 24, 2024
…efinitions() (#40222)

### Rationale for this change

It's easy to maintain.

### What changes are included in this PR?

Use `#cmakedefine` in `cpp/src/arrow/util/config.h.cmake` and `#include "arrow/util/config.h"` instead of `add_definition(...)`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: #40221

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
@kou
Copy link
Member Author

kou commented Feb 24, 2024

Issue resolved by pull request 40222
#40222

@kou kou added this to the 16.0.0 milestone Feb 24, 2024
@kou kou closed this as completed Feb 24, 2024
zanmato1984 pushed a commit to zanmato1984/arrow that referenced this issue Feb 28, 2024
… add_definitions() (apache#40222)

### Rationale for this change

It's easy to maintain.

### What changes are included in this PR?

Use `#cmakedefine` in `cpp/src/arrow/util/config.h.cmake` and `#include "arrow/util/config.h"` instead of `add_definition(...)`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#40221

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
thisisnic pushed a commit to thisisnic/arrow that referenced this issue Mar 8, 2024
… add_definitions() (apache#40222)

### Rationale for this change

It's easy to maintain.

### What changes are included in this PR?

Use `#cmakedefine` in `cpp/src/arrow/util/config.h.cmake` and `#include "arrow/util/config.h"` instead of `add_definition(...)`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#40221

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant