Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
z199416 opened this issue May 11, 2023 · 0 comments
Open

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

z199416 opened this issue May 11, 2023 · 0 comments

Comments

@z199416
Copy link

z199416 commented May 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant