Skip to content

Commit 28c2bfd

Browse files
authored
Require C++14 more consistently (#692)
1 parent e0d3e41 commit 28c2bfd

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CMakeLists.txt

+1-4
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,7 @@ else()
204204
target_compile_options(dmlc PRIVATE -O3)
205205
endif()
206206

207-
target_compile_definitions(dmlc PUBLIC -DDMLC_USE_CXX11=1)
208-
if(SUPPORT_CXX14)
209-
target_compile_definitions(dmlc PUBLIC -DDMLC_USE_CXX14=1)
210-
endif()
207+
target_compile_definitions(dmlc PUBLIC -DDMLC_USE_CXX11=1 -DDMLC_USE_CXX14=1)
211208
endif()
212209

213210

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Contributing
3131

3232
Contributing to dmlc-core is welcomed! dmlc-core follows google's C style guide. If you are interested in contributing, take a look at [feature wishlist](https://github.com/dmlc/dmlc-core/labels/feature%20wishlist) and open a new issue if you like to add something.
3333

34-
* DMLC-Core uses C++11 standard. Ensure that your C++ compiler supports C++11.
34+
* DMLC-Core uses C++14 standard. Ensure that your C++ compiler supports C++14.
3535
* Try to introduce minimum dependency when possible
3636

3737
### CheckList before submit code

0 commit comments

Comments
 (0)