AcademySoftwareFoundation / Imath

Imath is a C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics

Home Page:https://imath.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Target "PyImathTestC" links to: Imath::PyImath_Python3_7 Error

z199416 opened this issue · comments

1> CMake generation started for configuration: 'x64-Release'.
1> Command line: "C:\WINDOWS\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Release" -DCMAKE_INSTALL_PREFIX:PATH="D:\scripts\CompileSource\Imath\out\install\x64-Release" -DPYIMATH_OVERRIDE_PYTHON_INSTALL_DIR:STRING="" -DCLANG_FORMAT_ROOT:PATH="C:/MinGW/bin" -DCLANG_FORMAT_EXE:FILEPATH="C:/MinGW/bin/gcc.exe" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "D:\scripts\CompileSource\Imath" 2>&1"
1> Working directory: D:\scripts\CompileSource\Imath\out\build\x64-Release
1> [CMake] -- Configure Imath 3.2.0-dev, library API version: 29.0.0
1> [CMake] -- pkg-config generation disabled
1> [CMake] -- Found Boost: D:/scripts/CompileSource/boost_1_82_0/boost_install/lib/cmake/Boost-1.82.0/BoostConfig.cmake (found version "1.82.0")
1> [CMake] -- Found Python 3.7.7
1> [CMake] -- Found Python3 libraries: 37
1> [CMake] -- Will install to: Lib/site-packages
1> [CMake] -- Found Boost: D:/scripts/CompileSource/boost_1_82_0/boost_install/lib/cmake/Boost-1.82.0/BoostConfig.cmake (found version "1.82.0") found components: python python3 python37
1> [CMake] -- Found Python 3 boost: Boost::python37
1> [CMake] -- Found NumPy 1.21.6 for Python 3.7.7: C:/Python37/Lib/site-packages/numpy/core/include
1> [CMake] -- pkg-config generation disabled
1> [CMake] CMake Warning at src/python/CMakeLists.txt:195 (message):
1> [CMake] Forcing python bindings to be built with dynamic libraries
1> [CMake]
1> [CMake]
1> [CMake] -- clang-format found: C:/MinGW/bin/gcc.exe
1> [CMake] -- Configuring done
1> [CMake] CMake Error at src/python/PyImathTest/CMakeLists.txt:23 (target_link_libraries):
1> [CMake] Target "PyImathTestC" links to:
1> [CMake]
1> [CMake] Imath::PyImath_Python3_7
1> [CMake]
1> [CMake] but the target was not found. Possible reasons include:
1> [CMake]
1> [CMake] * There is a typo in the target name.
1> [CMake] * A find_package call is missing for an IMPORTED target.
1> [CMake] * An ALIAS target is missing.
1> [CMake]
1> [CMake]
1> [CMake]
1> [CMake] -- Generating done

How to solve this?
Windows 10 MSVC=14.35.32215 Python37 Visual Studio 2022