mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-12-01 09:08:47 +00:00
Link libssp when targetted
This commit is contained in:
@@ -162,6 +162,9 @@ include_directories("${PROJECT_SOURCE_DIR}/include")
|
||||
# add sources of the wrapper as a "SQLiteCpp" static library
|
||||
add_library(SQLiteCpp ${SQLITECPP_SRC} ${SQLITECPP_INC} ${SQLITECPP_DOC} ${SQLITECPP_SCRIPT})
|
||||
target_include_directories(SQLiteCpp PUBLIC "${PROJECT_SOURCE_DIR}/include")
|
||||
if (NOT MSVC)
|
||||
target_link_libraries(SQLiteCpp libssp)
|
||||
endif (NOT MSVC)
|
||||
|
||||
if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))
|
||||
set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-fPIC")
|
||||
|
||||
Reference in New Issue
Block a user