Skip to content

Commit

Permalink
PIC=ON
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Pearson <[email protected]>
  • Loading branch information
cwpearson committed Jan 17, 2025
1 parent 642b144 commit dd65e12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions profiling/perfetto-connector/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# perfetto/perfetto.cc is third-party code, so we want to disable all warnings for it
add_library(perfetto_static STATIC perfetto/perfetto.cc)
set_target_properties(perfetto_static PROPERTIES POSITION_INDEPENDENT_CODE ON)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(perfetto_static PRIVATE -w)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
Expand Down

0 comments on commit dd65e12

Please sign in to comment.