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
3737 clangCppInterOp
3838 )
3939
40- set_output_directory(DynamicLibraryManagerTests BINARY_DIR ${CMAKE_BINARY_DIR } /unittests/bin/$<CONFIG>/)
40+ set_output_directory(DynamicLibraryManagerTests BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR } /unittests/bin/$<CONFIG>/)
4141
4242add_dependencies (DynamicLibraryManagerTests TestSharedLib)
4343#export_executable_symbols_for_plugins(TestSharedLib)
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ add_llvm_library(TestSharedLib
55 TestSharedLib.cpp)
66# Put TestSharedLib next to the unit test executable.
77set_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>/
1010 )
1111set_target_properties (TestSharedLib PROPERTIES FOLDER "Tests" )
Original file line number Diff line number Diff line change 55#ifdef _WIN32
66extern "C" __declspec(dllexport ) int ret_zero ();
77#else
8- extern "C" int ret_zero ();
8+ extern "C" __attribute__(( visibility ( "default" ))) int ret_zero ();
99#endif
1010
1111#endif // UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H
You can’t perform that action at this time.
0 commit comments