Skip to content

Commit

Permalink
Don't set output directories
Browse files Browse the repository at this point in the history
This can lead to inconsistencies when another project embeds SOCI which
especially on Windows are likely to lead to issues when SOCI is built as
a DLL.

Fixes SOCI#1159
  • Loading branch information
Krzmbrzl committed Aug 31, 2024
1 parent 21515f2 commit a2faea6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ if (SOCI_LD)
add_link_options("${USE_LD_FLAG}")
endif()

# Ensure that libraries and executables end up at the top of the build tree
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

if (SOCI_SHARED)
set(SOCI_LIB_TYPE "SHARED")
else()
Expand Down

0 comments on commit a2faea6

Please sign in to comment.