rename internal name mapnik-core to core since the exported name would be mapnik::mapnik-core instead of mapnik::core. This fixes the issue
This commit is contained in:
parent
36be4fe594
commit
167461ccc4
1 changed files with 6 additions and 6 deletions
|
@ -224,10 +224,10 @@ if(NOT WIN32)
|
|||
list(APPEND MAPNIK_OPTIONAL_LIBS ${CMAKE_DL_LIBS})
|
||||
endif()
|
||||
|
||||
add_library(mapnik-core INTERFACE)
|
||||
add_library(mapnik::core ALIAS mapnik-core)
|
||||
add_library(core INTERFACE)
|
||||
add_library(mapnik::core ALIAS core)
|
||||
|
||||
target_include_directories(mapnik-core INTERFACE
|
||||
target_include_directories(core INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<BUILD_INTERFACE:${MAPBOX_GEOMETRY_INCLUDE_DIRS}>
|
||||
$<BUILD_INTERFACE:${MAPBOX_POLYLABEL_INCLUDE_DIRS}>
|
||||
|
@ -237,7 +237,7 @@ target_include_directories(mapnik-core INTERFACE
|
|||
$<INSTALL_INTERFACE:include>
|
||||
${MAPNIK_OPTIONAL_LIBS_INCLUDE}
|
||||
)
|
||||
target_link_libraries(mapnik-core INTERFACE
|
||||
target_link_libraries(core INTERFACE
|
||||
Boost::headers
|
||||
Boost::regex
|
||||
Boost::filesystem
|
||||
|
@ -248,9 +248,9 @@ target_link_libraries(mapnik-core INTERFACE
|
|||
harfbuzz::harfbuzz
|
||||
${MAPNIK_OPTIONAL_LIBS}
|
||||
)
|
||||
target_compile_definitions(mapnik-core INTERFACE ${MAPNIK_COMPILE_DEFS})
|
||||
target_compile_definitions(core INTERFACE ${MAPNIK_COMPILE_DEFS})
|
||||
|
||||
install(TARGETS mapnik-core
|
||||
install(TARGETS core
|
||||
EXPORT MapnikTargets
|
||||
LIBRARY DESTINATION ${MAPNIK_LIB_DIR}
|
||||
ARCHIVE DESTINATION ${MAPNIK_ARCHIVE_DIR}
|
||||
|
|
Loading…
Reference in a new issue