Skip to content

Commit

Permalink
swap order of add_library and set_directory_properties
Browse files Browse the repository at this point in the history
  • Loading branch information
AviaAv committed Oct 13, 2024
1 parent 85da1c4 commit 5245d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third-party/rsutils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5245d71

Please sign in to comment.