From 5245d71b727a9f3089f271bb0ebf4b743541b6d5 Mon Sep 17 00:00:00 2001 From: Avia Avraham <145359432+AviaAv@users.noreply.github.com> Date: Sun, 13 Oct 2024 14:32:57 +0300 Subject: [PATCH] swap order of add_library and set_directory_properties --- third-party/rsutils/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/rsutils/CMakeLists.txt b/third-party/rsutils/CMakeLists.txt index 7f0783ed66c..40f32625ecf 100644 --- a/third-party/rsutils/CMakeLists.txt +++ b/third-party/rsutils/CMakeLists.txt @@ -3,12 +3,12 @@ cmake_minimum_required(VERSION 3.8.0) # source_group(TREE) project( rsutils ) +set_directory_properties(PROPERTIES COMPILE_FLAGS "") # remove -w flag for rsutils add_library( ${PROJECT_NAME} STATIC "" ) # We cannot directly interface with nlohmann_json (doesn't work on bionic) #target_link_libraries( ${PROJECT_NAME} PUBLIC nlohmann_json ) target_compile_features( ${PROJECT_NAME} PUBLIC cxx_std_14 ) set_target_properties( ${PROJECT_NAME} PROPERTIES FOLDER Library ) -set_directory_properties(PROPERTIES COMPILE_FLAGS "") # remove -w flag for rsutils target_include_directories( ${PROJECT_NAME} PUBLIC