OCCT
OCCT copied to clipboard
CMake Error at samples/qt/FuncDemo/CMakeLists.txt:8 (target_link_libraries):
Description
Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.26100. Info: TCL is used by OCCT Info: TK is used by OCCT Info: FreeType is used by OCCT Info: Qt is used by OCCT Info: /D_WINDOWS has been removed from CMAKE_CXX_FLAGS Info: /DWIN32 has been removed from CMAKE_CXX_FLAGS Info: /D_WINDOWS has been removed from CMAKE_C_FLAGS Info: /DWIN32 has been removed from CMAKE_C_FLAGS Info: TK is used from TCL folder: C:/libs/occt/3rdparty-vc14-64/tcltk-8.6.15-x64 VTK version (9.4.1) Processing Qt 3-rd party Info: The directories of 3rdparty headers: C:/libs/occt/3rdparty-vc14-64/tcltk-8.6.15-x64/include C:/libs/occt/3rdparty-vc14-64/freetype-2.13.3-x64/include C:/libs/occt/3rdparty-vc14-64/tbb-2021.13.0-x64/include Info: The directories of 3rdparty libraries: C:/libs/occt/3rdparty-vc14-64/tcltk-8.6.15-x64/lib C:/libs/occt/3rdparty-vc14-64/freetype-2.13.3-x64/lib C:/libs/occt/3rdparty-vc14-64/vtk-9.4.1-x64/lib C:/libs/occt/3rdparty-vc14-64/tbb-2021.13.0-x64/lib
Info: (20:30:01) Start collecting all OCCT header files into C:/libs/occt/buildx64/inc ... Info: (20:30:02) End the collecting
Info: (20:30:02) Start collecting all OCCT tool header files into C:/libs/occt/buildx64/inc/inspector ... Info: Used native memory manager Info: (20:30:02) OCCT toolkits processed Info: (20:30:02) MFC Sample projects added Info: (20:30:04) qt Sample projects added CMake Error at samples/qt/FuncDemo/CMakeLists.txt:8 (target_link_libraries): The keyword signature for target_link_libraries has already been used with the target "FuncDemo". All uses of target_link_libraries with a target must be either all-keyword or all-plain.
The uses of the keyword signature are here:
- adm/cmake/occt_toolkit.cmake:283 (target_link_libraries)
- adm/cmake/occt_toolkit.cmake:287 (target_link_libraries)
- adm/cmake/occt_toolkit.cmake:290 (target_link_libraries)
Info: (20:30:04) OCCT configuration files prepared Configuring incomplete, errors occurred!
Expected Behavior
cmake confiure ok
Actual Behavior
cmake confiure error
Sample Code or DRAW Tcl Script
CMake Error at samples/qt/FuncDemo/CMakeLists.txt:8 (target_link_libraries): The keyword signature for target_link_libraries has already been used with the target "FuncDemo". All uses of target_link_libraries with a target must be either all-keyword or all-plain.
The uses of the keyword signature are here:
- adm/cmake/occt_toolkit.cmake:283 (target_link_libraries)
- adm/cmake/occt_toolkit.cmake:287 (target_link_libraries)
- adm/cmake/occt_toolkit.cmake:290 (target_link_libraries)
Info: (20:30:04) OCCT configuration files prepared Configuring incomplete, errors occurred!
Operating System
Windows
Compiler
MSVC
Bitness
64-bit
OCCT Version
latest
Additional Files
No response
As a fast workaround, use V7_9_0 or V7_9_1. The issue is not presented in that releases.
Resolved in IR, will be merged to master in Monday.