From d59ff62ad71517c46a9622ae919b7b0d0ba8771a Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Wed, 8 Nov 2023 22:33:06 +0100 Subject: [PATCH] build: add example for setting per-file compile options --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ee4b06b..79d81b6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -407,6 +407,9 @@ list( src/dwarfs/wcwidth.c src/dwarfs/worker_group.cpp) +# Just an example for setting per file compile options +# set_source_files_properties(src/dwarfs/segmenter.cpp PROPERTIES COMPILE_FLAGS -march=tigerlake) + if(DWARFS_GIT_BUILD) list(APPEND LIBDWARFS_SRC ${CMAKE_CURRENT_BINARY_DIR}/src/dwarfs/version.cpp) else()