Skip to content

Commit

Permalink
[cmake] Cleanup redundant targets for annotate_fnt tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Feb 9, 2024
1 parent cab0031 commit d8f57d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions share/cmake/Modules/clang_detection.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,15 @@ target_compile_options(clang_plugin
-Wall
-Wextra
-Wpedantic
#-Wno-shadow
-Wno-sign-compare
-Wno-gcc-compat
-Wno-unused-parameter
)
target_include_directories(clang_plugin SYSTEM INTERFACE ${CLANG_INCLUDE_DIR} ${LLVM_INCLUDE_DIR})
target_include_directories(clang_plugin SYSTEM INTERFACE ${CLANG_INCLUDE_DIR} ${LLVM_INCLUDE_DIR})

# Allow undefined symbols in shared objects on Darwin (this is the default behaviour on Linux)
target_link_libraries(clang_plugin INTERFACE "$<$<PLATFORM_ID:Darwin>:-undefined dynamic_lookup>")

if (NOT LLVM_ENABLE_RTTI)
target_compile_options(clang_plugin INTERFACE -fno-rtti)
endif()

5 changes: 1 addition & 4 deletions src/tools/annotate_fnt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
set(SRC_FILES ast_consumer.cpp matchers.cpp worker.cpp main.cpp)
add_executable(annotate_fnt ${SRC_FILES} )

target_link_libraries(annotate_fnt clang_plugin clu fmt::fmt )

#target_link_libraries(clang_plugin INTERFACE clangAST clangBasic clangDriver clangFrontend clangRewriteFrontend clangSerialization clangStaticAnalyzerFrontend clangTooling)
target_link_libraries(annotate_fnt clangAST clangBasic clangDriver clangFrontend clangRewriteFrontend clangSerialization clangStaticAnalyzerFrontend clangTooling clang-cpp LLVMSupport)
target_link_libraries(annotate_fnt clang_plugin clu fmt::fmt clangTooling)

target_include_directories(annotate_fnt PRIVATE ${CMAKE_SOURCE_DIR}/c++ ${CMAKE_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR})
set_property(TARGET annotate_fnt PROPERTY POSITION_INDEPENDENT_CODE ON)
Expand Down

0 comments on commit d8f57d8

Please sign in to comment.