Skip to content

Commit

Permalink
cmake: rename glogbase to glog_internal
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Feb 24, 2023
1 parent 4056374 commit a69fd1a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -639,13 +639,13 @@ if (CYGWIN OR WIN32)
)
endif (CYGWIN OR WIN32)

add_library (glogbase OBJECT
add_library (glog_internal OBJECT
${_glog_BINARY_CMake_MODULES}
${GLOG_SRCS}
)

add_library (glog
$<TARGET_OBJECTS:glogbase>
$<TARGET_OBJECTS:glog_internal>
)

add_library (glog::glog ALIAS glog)
Expand Down Expand Up @@ -708,7 +708,7 @@ target_include_directories (glog BEFORE PUBLIC
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)

if (CYGWIN OR WIN32)
target_include_directories (glogbase PUBLIC
target_include_directories (glog_internal PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/windows>"
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/windows)

Expand All @@ -719,9 +719,9 @@ endif (CYGWIN OR WIN32)

set_target_properties (glog PROPERTIES DEFINE_SYMBOL GOOGLE_GLOG_IS_A_DLL)

target_include_directories (glogbase PUBLIC
target_include_directories (glog_internal PUBLIC
$<TARGET_PROPERTY:glog,INCLUDE_DIRECTORIES>)
target_compile_definitions (glogbase PUBLIC
target_compile_definitions (glog_internal PUBLIC
$<TARGET_PROPERTY:glog,COMPILE_DEFINITIONS>
PRIVATE GOOGLE_GLOG_IS_A_DLL)

Expand Down Expand Up @@ -755,7 +755,7 @@ endif (WITH_PKGCONFIG)

if (BUILD_TESTING)
add_library (glogtest STATIC
$<TARGET_OBJECTS:glogbase>
$<TARGET_OBJECTS:glog_internal>
)

target_include_directories (glogtest PUBLIC
Expand Down

0 comments on commit a69fd1a

Please sign in to comment.