File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ target_link_libraries(DynamicLibraryManagerTests
37
37
clangCppInterOp
38
38
)
39
39
40
- set_output_directory (DynamicLibraryManagerTests BINARY_DIR ${CMAKE_BINARY_DIR} /unittests/bin/$<CONFIG>/ )
40
+ set_output_directory (DynamicLibraryManagerTests BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} /TestSharedLib /unittests/bin/$<CONFIG>/ )
41
41
42
42
add_dependencies (DynamicLibraryManagerTests TestSharedLib )
43
43
#export_executable_symbols_for_plugins(TestSharedLib)
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ add_llvm_library(TestSharedLib
5
5
TestSharedLib.cpp )
6
6
# Put TestSharedLib next to the unit test executable.
7
7
set_output_directory (TestSharedLib
8
- BINARY_DIR ${CMAKE_BINARY_DIR } /unittests/bin/$<CONFIG>/
9
- LIBRARY_DIR ${CMAKE_BINARY_DIR } /unittests/bin/$<CONFIG>/
8
+ BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR } /unittests/bin/$<CONFIG>/
9
+ LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR } /unittests/bin/$<CONFIG>/
10
10
)
11
11
set_target_properties (TestSharedLib PROPERTIES FOLDER "Tests" )
Original file line number Diff line number Diff line change 5
5
#ifdef _WIN32
6
6
extern "C" __declspec(dllexport ) int ret_zero ();
7
7
#else
8
- extern "C" int ret_zero ();
8
+ extern "C" int __attribute__(( visibility ( "default" ))) ret_zero ();
9
9
#endif
10
10
11
11
#endif // UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H
You can’t perform that action at this time.
0 commit comments