Browse Source

CMake: Fix compile error due to missing `-lm` for deploy-stub

rdb 3 years ago
parent
commit
f258442b77
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pandatool/src/deploy-stub/CMakeLists.txt

+ 1 - 0
pandatool/src/deploy-stub/CMakeLists.txt

@@ -18,6 +18,7 @@ elseif(IS_LINUX OR IS_FREEBSD)
     INSTALL_RPATH "$ORIGIN"
     INSTALL_RPATH "$ORIGIN"
     BUILD_WITH_INSTALL_RPATH ON)
     BUILD_WITH_INSTALL_RPATH ON)
   target_link_options(deploy-stub PRIVATE -Wl,--disable-new-dtags -Wl,-z,origin -rdynamic)
   target_link_options(deploy-stub PRIVATE -Wl,--disable-new-dtags -Wl,-z,origin -rdynamic)
+  target_link_libraries(deploy-stub m)
 endif()
 endif()
 
 
 target_link_libraries(deploy-stub Python::Python)
 target_link_libraries(deploy-stub Python::Python)