mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-11-29 18:27:43 +08:00
Modify cmake configuration (#271)
This commit is contained in:
parent
5b40410466
commit
f9998996a5
@ -284,6 +284,7 @@ target_sources(${PROJECT_NAME} PRIVATE ${DROGON_SOURCES})
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD ${DROGON_CXX_STANDARD})
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD_REQUIRED ON)
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_EXTENSIONS OFF)
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES EXPORT_NAME Drogon)
|
||||
|
||||
add_dependencies(${PROJECT_NAME} makeVersion)
|
||||
|
||||
|
@ -19,8 +19,6 @@ endif()
|
||||
get_filename_component(DROGON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
if(NOT TARGET Drogon::Drogon)
|
||||
include("${DROGON_CMAKE_DIR}/DrogonTargets.cmake")
|
||||
set_target_properties(Drogon::drogon PROPERTIES IMPORTED_GLOBAL TRUE)
|
||||
add_library(Drogon::Drogon ALIAS Drogon::drogon)
|
||||
endif()
|
||||
|
||||
get_target_property(DROGON_INCLUDE_DIRS Drogon::Drogon INTERFACE_INCLUDE_DIRECTORIES)
|
||||
|
2
trantor
2
trantor
@ -1 +1 @@
|
||||
Subproject commit 99ba85bd4c252b7003e73eef50c862d51c23e4e0
|
||||
Subproject commit 01d39264350bb972c8c91df6f7055a27b2e8050f
|
Loading…
Reference in New Issue
Block a user