Windows build broken - Duplicate targets for freetype/lcms/yaml_cpp #298
Replies: 1 comment 2 replies
-
Hello, I apologize for the delay ! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Doing a fresh checkout of the repo on windows is failing to build. I'm seeing errors:
`CMake Error at src/pub/freetype/CMakeLists.txt:62 (ADD_LIBRARY):
ADD_LIBRARY cannot create target "freetype" because another target with the
same name already exists. The existing target is a static library created
in source directory "C:/OpenRV.new/src/pub/freetype". See documentation
for policy CMP0002 for more details.
CMake Error at src/pub/lcms/CMakeLists.txt:41 (ADD_LIBRARY):
ADD_LIBRARY cannot create target "lcms" because another target with the
same name already exists. The existing target is a shared library created
in source directory "C:/OpenRV.new/src/pub/lcms". See documentation for
policy CMP0002 for more details.
CMake Error at src/pub/yaml_cpp/CMakeLists.txt:47 (ADD_LIBRARY):
ADD_LIBRARY cannot create target "yaml_cpp" because an imported target with
the same name already exists.
CMake Error at src/pub/yaml_cpp/CMakeLists.txt:52 (TARGET_INCLUDE_DIRECTORIES):
TARGET_INCLUDE_DIRECTORIES may only set INTERFACE properties on IMPORTED
targets
CMake Error at src/pub/yaml_cpp/CMakeLists.txt:58 (TARGET_COMPILE_OPTIONS):
TARGET_COMPILE_OPTIONS may only set INTERFACE properties on IMPORTED
targets
`
Which I believe is caused by changes to https://github.com/AcademySoftwareFoundation/OpenRV/commits/main/cmake/dependencies/CMakeLists.txt from commit #270 since we now have the freetype subdirectory added twice.
Beta Was this translation helpful? Give feedback.
All reactions