Skip to content

Commit

Permalink
Revert linking ssp in SQLiteCpp and link ssp in the example project f…
Browse files Browse the repository at this point in the history
…or MSYS and MINGW
  • Loading branch information
Ashley Williams committed Aug 30, 2016
1 parent 4b4bc3f commit acbad05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ 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")
Expand Down Expand Up @@ -242,6 +239,8 @@ if (SQLITECPP_BUILD_EXAMPLES)
if (NOT APPLE)
target_link_libraries(SQLiteCpp_example1 dl)
endif ()
elseif (MSYS OR MINGW)
target_link_libraries(SQLiteCpp_example1 ssp)
endif ()
else (SQLITECPP_BUILD_EXAMPLES)
message(STATUS "SQLITECPP_BUILD_EXAMPLES OFF")
Expand Down

0 comments on commit acbad05

Please sign in to comment.