|
|
|
@@ -203,8 +203,8 @@ add_library(megengine) |
|
|
|
target_link_libraries(megengine PRIVATE ${MGE_CUDA_LIBS}) |
|
|
|
target_link_libraries(megengine PUBLIC megbrain megdnn) |
|
|
|
if (UNIX AND NOT APPLE) |
|
|
|
# TODO: Use target_link_options after upgrading to CMake 3.13 |
|
|
|
target_link_options(megengine PRIVATE -Wl,--no-undefined -Wl,--version-script=${_VER_FILE}) |
|
|
|
set_target_properties(megengine PROPERTIES LINK_DEPENDS ${_VER_FILE}) |
|
|
|
endif() |
|
|
|
set_target_properties(megengine PROPERTIES CXX_VISIBILITY_PRESET default) |
|
|
|
set_target_properties(megengine PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE) |
|
|
|
|