Skip to content

Commit

Permalink
move link to common
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Aug 14, 2023
1 parent 062151e commit 0229e64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

cmake_minimum_required(VERSION 3.0)
option(STATIC_CRT "Windows specific option that to specify static/dynamic run-time library" OFF)
option(ALLOW_CROSS_COMPILED_TESTS "Allow tests to be compiled via cross compile, for use with qemu" OFF)


project(aws-c-common LANGUAGES C VERSION 0.1.0)

Expand Down Expand Up @@ -301,3 +299,8 @@ if (ALLOW_CROSS_COMPILED_TESTS OR NOT CMAKE_CROSSCOMPILING)
endif()

include(CPackConfig)

if(AWS_ENABLE_TRACING)
message("Enabling Tracing")
target_link_libraries(${PROJECT_NAME} PUBLIC ittnotify)
endif()
4 changes: 1 addition & 3 deletions cmake/AwsCFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,7 @@ function(aws_set_common_properties target)
endif()
endif()

if(AWS_ENABLE_TRACING)
target_link_libraries(${PROJECT_NAME} PRIVATE ittnotify)
else()
if(NOT AWS_ENABLE_TRACING)
list(APPEND AWS_C_DEFINES_PRIVATE -DINTEL_NO_ITTNOTIFY_API) # Disable intel notify api if tracing is not enabled
endif()
target_compile_options(${target} PRIVATE ${AWS_C_FLAGS})
Expand Down

0 comments on commit 0229e64

Please sign in to comment.