Skip to content

Commit

Permalink
Merge pull request #5 from ada-url/cmake-export-compile
Browse files Browse the repository at this point in the history
build: add cmake export compile commands
  • Loading branch information
lemire committed Feb 8, 2023
2 parents 9f47f33 + cb8df3c commit 71d5487
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@
*.exe
*.out
*.app

.fleet
build
.cache
3 changes: 0 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ repos:
entry: ./hooks/clang-format-hook
types_or: [c++, c]
language: system



8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# IDNA

#### Commit setup
##### Git hooks
## Contributing

### Git hooks

1. Install [pre-commit](https://pre-commit.com/)

Using [pip](https://www.w3schools.com/python/python_pip.asp):
Expand All @@ -20,4 +22,4 @@
pre-commit install
```

You are all set for the hooks!
You are all set for the hooks!
1 change: 1 addition & 0 deletions cmake/idna-flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
endif()

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
Expand Down

0 comments on commit 71d5487

Please sign in to comment.