Skip to content

Commit

Permalink
Export SOCI_CORE_TARGET_STATIC to parent scope
Browse files Browse the repository at this point in the history
Rename left over old name -static to _static
  • Loading branch information
mloskot committed Feb 28, 2013
1 parent 84d065a commit 0691e60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmake/SociBackend.cmake
Expand Up @@ -305,7 +305,7 @@ macro(soci_backend_test)

target_link_libraries(${TEST_TARGET_STATIC}
${SOCI_CORE_TARGET_STATIC}
${SOCI_${BACKENDU}_TARGET}-static
${SOCI_${BACKENDU}_TARGET}_static
${${BACKENDU}_LIBRARIES}
${SOCI_CORE_STATIC_DEPENDENCIES}
${SOCI_TEST_DEPENDENCIES})
Expand Down
3 changes: 3 additions & 0 deletions src/core/CMakeLists.txt
Expand Up @@ -135,4 +135,7 @@ soci_report_directory_property(COMPILE_DEFINITIONS)

# Export core target name to make it visible by backends
set(SOCI_CORE_TARGET ${SOCI_CORE_TARGET} PARENT_SCOPE)
if (SOCI_STATIC)
set(SOCI_CORE_TARGET_STATIC ${SOCI_CORE_TARGET_STATIC} PARENT_SCOPE)
endif()
set(SOCI_CORE_STATIC_DEPENDENCIES ${SOCI_CORE_DEPENDENCIES} PARENT_SCOPE)

0 comments on commit 0691e60

Please sign in to comment.