Skip to content

Commit

Permalink
Fix symbol visibility macro use and linker order for static builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
insertinterestingnamehere committed Jul 23, 2017
1 parent f6a4555 commit 53ac277
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
19 changes: 10 additions & 9 deletions CMakeLists.txt
Expand Up @@ -510,15 +510,16 @@ else()
)
endif()

set_property(
TARGET libdyndt
PROPERTY COMPILE_DEFINITIONS DYNDT_EXPORT
)

set_property(
TARGET libdynd
PROPERTY COMPILE_DEFINITIONS DYND_EXPORT
)
if(DYND_SHARED_LIB)
set_property(
TARGET libdyndt
PROPERTY COMPILE_DEFINITIONS DYNDT_EXPORT
)
set_property(
TARGET libdynd
PROPERTY COMPILE_DEFINITIONS DYND_EXPORT
)
endif()

# Add preprocessor definitions from CMake
configure_file("include/dynd/cmake_config.hpp.in"
Expand Down
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Expand Up @@ -14,4 +14,4 @@ add_executable(simple_example
simple_example.cpp
)

target_link_libraries(simple_example libdynd)
target_link_libraries(simple_example libdynd libdyndt)
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Expand Up @@ -144,7 +144,7 @@ source_group("Types Tests" REGULAR_EXPRESSION "\\/types\\/test_[^\\/]*\\.cpp$")
source_group("Func Tests" REGULAR_EXPRESSION "\\/func\\/test_[^\\/]*\\.cpp$")

add_executable(test_libdynd ${tests_SRC})
set(LINK_LIBS ${LINK_LIBS} libdyndt libdynd)
set(LINK_LIBS ${LINK_LIBS} libdynd libdyndt)

if(DYND_BUILD_PLUGINS)
set(LINK_LIBS ${LINK_LIBS} dynd_mkl)
Expand Down

0 comments on commit 53ac277

Please sign in to comment.