From e17672d3c14200250badf6a2426707bd6d0bbe90 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Tue, 7 Jun 2022 16:13:36 +0100 Subject: [PATCH] Missing PRIVATE in cmake. (#539) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a5bb26..da05a01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -299,7 +299,7 @@ if(NOT SNMALLOC_HEADER_ONLY_LIBRARY) if(SNMALLOC_OPTIMISE_FOR_CURRENT_MACHINE) check_cxx_compiler_flag(-march=native SUPPORT_MARCH_NATIVE) if (SUPPORT_MARCH_NATIVE) - target_compile_options(${name} -march=native) + target_compile_options(${name} PRIVATE -march=native) else() message(WARNING "Compiler does not support `-march=native` required by SNMALLOC_OPTIMISE_FOR_CURRENT_MACHINE") endif()