This repository was archived by the owner on Jul 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ project(opencensus-cpp VERSION 0.3.0 LANGUAGES CXX)
2525
2626set (CMAKE_CXX_STANDARD 11)
2727set (CMAKE_CXX_STANDARD_REQUIRED ON )
28- set (OPENCENSUS_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR} " )
2928
3029include (CTest) # Defines option BUILD_TESTING.
3130enable_testing ()
3231
3332list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /cmake)
3433include (OpenCensusDeps)
34+
3535include (OpenCensusHelpers)
3636
3737# OpenCensus code.
Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ function(opencensus_lib NAME)
4747 if (ARG_SRCS)
4848 add_library (${_NAME} ${ARG_SRCS} )
4949 target_link_libraries (${_NAME} PUBLIC ${ARG_DEPS} )
50- target_include_directories (${_NAME} PUBLIC ${OPENCENSUS_INCLUDE_DIR } )
50+ target_include_directories (${_NAME} PUBLIC ${CMAKE_SOURCE_DIR } )
5151 else ()
5252 add_library (${_NAME} INTERFACE )
5353 target_link_libraries (${_NAME} INTERFACE ${ARG_DEPS} )
54- target_include_directories (${_NAME} INTERFACE ${OPENCENSUS_INCLUDE_DIR } )
54+ target_include_directories (${_NAME} INTERFACE ${CMAKE_SOURCE_DIR } )
5555 endif ()
5656 if (ARG_PUBLIC)
5757 add_library (${PROJECT_NAME} ::${NAME} ALIAS ${_NAME} )
You can’t perform that action at this time.
0 commit comments