diff --git a/CMakeLists.txt b/CMakeLists.txt index 470ce645..324b06ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,6 +100,15 @@ else() endif() +# Always build Release with debug symbols as well +if(MSVC) + add_compile_options("$<$:/Zi>") + add_link_options("$<$:/DEBUG>") +else() + add_compile_options("$<$:-g>") +endif() + + add_subdirectory(lass) if(TARGET Lass::lass_python) add_subdirectory(pylass)