1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -04:00

CMake: Make compiler flags selection and detection more flexible.

- Fix for RelWithDebInfo and MinSizeRel build types
- Use -march=native instead of handcrafted detection when possible
- Refactor whole thing to reduce code duplication
This commit is contained in:
Kacper Michajłow
2020-11-09 03:33:18 +01:00
parent c44ae9f1e9
commit 305c97fc0e
7 changed files with 230 additions and 298 deletions
+1 -2
View File
@@ -2,9 +2,8 @@
%:
dh $@ --parallel --buildsystem=cmake+ninja
# FORCE_SSE41 will be not accepted upstream
override_dh_auto_configure:
dh_auto_configure -- -DFORCE_SSE41=ON -DENABLE_EXTERNAL_LIBRARIES=ON -DDEBUG_OUTPUT=ON -DBUILD_SERVER=OFF
dh_auto_configure -- -DARCH_OPT=nehalem -DENABLE_EXTERNAL_LIBRARIES=ON -DDEBUG_OUTPUT=ON -DBUILD_SERVER=OFF
override_dh_auto_test:
echo "Skipping test step"