Modify cmake configuration (#271)

This commit is contained in:
An Tao 2019-10-04 22:24:34 +08:00 committed by GitHub
parent 5b40410466
commit f9998996a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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)

@ -1 +1 @@
Subproject commit 99ba85bd4c252b7003e73eef50c862d51c23e4e0
Subproject commit 01d39264350bb972c8c91df6f7055a27b2e8050f