CMake警告:“运行时库...可能已隐藏”

时间:2019-04-25 08:04:30

标签: cmake

当我运行cmake时,警告发生如下:

-- Configuring done
CMake Warning at CMakeLists.txt:129 (add_executable):
  Cannot generate a safe runtime search path for target Train because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.


CMake Warning at CMakeLists.txt:151 (add_executable):
  Cannot generate a safe runtime search path for target Decoder because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.


CMake Warning at CMakeLists.txt:140 (add_executable):
  Cannot generate a safe runtime search path for target Test because files in
  some directories may conflict with libraries in implicit directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target RuntimeTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:98 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target W2lModuleTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:87 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target WindowTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:35 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target CriterionTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:32 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target Seq2SeqTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:33 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target DataTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:37 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target AttentionTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:34 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target PreEmphasisTest
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:74 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target W2lCommonTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:30 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target SpeechUtilsTest
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:83 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target TriFilterbankTest
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:84 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target DitherTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:66 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target DecoderTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:48 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target MfccTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:67 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target CeplifterTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:63 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target DctTest because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:64 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target DerivativesTest
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:65 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target WindowingTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:85 (build_test)


CMake Warning at src/tests/CMakeLists.txt:9 (add_executable):
  Cannot generate a safe runtime search path for target SoundTest because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/cuda-10.0/lib64

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:76 (build_test)


-- Generating done

请告诉我如何解决。

0 个答案:

没有答案