mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
INTERFACE libraries were created with the intention of collecting usage requirements for use by other targets via `target_link_libraries`. Therefore they were not allowed to have SOURCES and were not included in the generated buildsystem. In practice, this has become limiting: * Header-only libraries do have sources, they just do not compile. Developers should be able to edit those sources (the header files) in their IDE. * Header-only libraries may need to generate some of their header files via custom commands. Some projects work around these limitations by pairing each interface library with an `add_custom_target` that makes the header files and custom commands appear in the generated buildsystem and in IDEs. Lift such limitations by allowing INTERFACE libraries to have SOURCES. For those with sources, add a corresponding build target to the generated buildsystem. Fixes: #19145
75 lines
3.0 KiB
Plaintext
75 lines
3.0 KiB
Plaintext
CMake Error at invalid_signature.cmake:3 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting/multiple types.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:4 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting/multiple types.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:5 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting/multiple types.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:6 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting/multiple types.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:7 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting/multiple types.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:8 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting/multiple types.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:9 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting STATIC type.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:10 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting SHARED type.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:11 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting MODULE type.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:12 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting OBJECT type.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:13 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting UNKNOWN type.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:14 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting ALIAS type.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:15 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting ALIAS type.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:16 \(add_library\):
|
|
add_library INTERFACE library specified with conflicting/multiple types.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
+
|
|
CMake Error at invalid_signature.cmake:20 \(add_library\):
|
|
add_library GLOBAL option may only be used with IMPORTED libraries.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|