cpptrace/cmake
Vittorio Romeo 0ddbbf43cb
Improve compilation times on Windows (#172)
Thank you for the very useful library!

Few improvements:
- Better header hygiene
- Isolate `windows.h` to `.cpp` whenever possible
- Use `WIN32_LEAN_AND_MEAN`
- Remove unused headers

Tested on Windows with 
```
cmake .. -DCMAKE_BUILD_TYPE=Debug -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 
  -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="-ftime-trace -Wall -Wextra -Wpedantic 
  -Wno-ignored-attributes" -DCMAKE_COLOR_DIAGNOSTICS=1 -DCPPTRACE_BUILD_TESTING=1 
  -DCPPTRACE_BUILD_BENCHMARKING=0
```

There's a lot more that can be improved if you are interested.

---------

Co-authored-by: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>
2024-10-02 10:55:13 -05:00
..
in Updates for conda 2024-05-03 20:07:09 -05:00
Findzstd.cmake Improve zstd handling (#115) 2024-04-28 23:56:27 -05:00
has_backtrace.cpp CMake improvements (#57) 2023-11-06 12:12:07 -05:00
has_cxx_exception_type.cpp Add specialized terminate handler and add error handling info to the README. Also updated demo. 2023-10-07 17:34:49 -04:00
has_cxxabi.cpp Build work (#1) 2023-07-01 22:14:05 -04:00
has_dl_find_object.cpp Check for _dl_find_object support 2023-11-19 23:17:11 -06:00
has_dl.cpp Auto config improvements (#20) 2023-07-23 23:59:34 -04:00
has_dladdr1.cpp Fix dladdr1 and dl_find_object tests 2024-06-11 22:22:52 -05:00
has_execinfo.cpp Build work (#1) 2023-07-01 22:14:05 -04:00
has_mach_vm.cpp Fix compilation on ios (#167) 2024-09-04 17:22:32 -05:00
has_stackwalk.cpp Improve compilation times on Windows (#172) 2024-10-02 10:55:13 -05:00
has_unwind.cpp Libgcc unwind backend (#11) 2023-07-20 01:14:38 -04:00
InstallRules.cmake Improve zstd handling (#115) 2024-04-28 23:56:27 -05:00
OptionVariables.cmake Switch away from FetchContent_Populated, #171 2024-09-13 00:42:17 -05:00
PreventInSourceBuilds.cmake Adjust indentation 2023-11-15 00:36:02 -05:00
ProjectIsTopLevel.cmake Adjust indentation 2023-11-15 00:36:02 -05:00