Skip to content

CMake fix in install rules #487

Closed
Closed
@Zbyl

Description

@Zbyl

CMake has a bug:

	# install libraries
	install(TARGETS PlayRho
		EXPORT PlayRho-targets
		LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
		ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
		RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
		INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
		COMPONENT Library
	)

COMPONENT Library must be the second line. When it is the last one, both words are interpreted as include directories!

(See similar issue here: https://gitlab.kitware.com/cmake/cmake/-/issues/20636)

Metadata

Metadata

Labels

BugFor issues or changes that describe or fix bugs.CMakeUse to associate with the CMake tool.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions