diff options
author | crupest <crupest@outlook.com> | 2023-10-03 23:52:51 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-10-03 23:52:51 +0800 |
commit | 21985bda6c2631c1b78d3a0e9987f67dffca5bad (patch) | |
tree | e59eae8f5dda14a11fb3d2a7e0676ba60f82cdcc | |
parent | c106a2dded7caf3f3f2d58394f9f4aab26a142dc (diff) | |
download | cru-21985bda6c2631c1b78d3a0e9987f67dffca5bad.tar.gz cru-21985bda6c2631c1b78d3a0e9987f67dffca5bad.tar.bz2 cru-21985bda6c2631c1b78d3a0e9987f67dffca5bad.zip |
cmake export compile commands by default
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d83e4b07..155a4687 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.21) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + set(CRU_DEFAULT_BUILD_SHARED_LIBS ON) if (EMSCRIPTEN) # Webassembly has no idea about static/dynamic libraries. |