diff --git a/tdactor/CMakeLists.txt b/tdactor/CMakeLists.txt index 62acc1ec..8628954b 100644 --- a/tdactor/CMakeLists.txt +++ b/tdactor/CMakeLists.txt @@ -45,8 +45,10 @@ add_library(tdactor STATIC ${TDACTOR_SOURCE}) target_include_directories(tdactor PUBLIC $) target_link_libraries(tdactor PUBLIC tdutils) -add_executable(example example/example.cpp) -target_link_libraries(example PRIVATE tdactor) +if (NOT CMAKE_CROSSCOMPILING) + add_executable(example example/example.cpp) + target_link_libraries(example PRIVATE tdactor) +endif() install(TARGETS tdactor EXPORT TdTargets LIBRARY DESTINATION lib