[Buildroot] [PATCH 1/2] Add BR2_CMAKE_USE_NINJA_BACKEND option

Cédric Marie cedric.marie at openmailbox.org
Tue Jul 11 13:25:46 UTC 2017


Hi,

Le 2017-07-11 13:56, Thomas Petazzoni a écrit :
> Do you know why a CMake package could be working with the make backend,
> but not with the ninja backend ?

In file CMakeLists.txt, in the root directory of the bullet package, I 
have found:

IF("${CMAKE_GENERATOR}" MATCHES "Unix Makefiles")
	OPTION(INSTALL_LIBS "Set when you want to install libraries" ON)
ELSE()
	IF(APPLE AND FRAMEWORK)
		OPTION(INSTALL_LIBS "Set when you want to install libraries" ON)
	ELSE()
#by default, don't enable the 'INSTALL' option for Xcode and MSVC 
projectfiles
		OPTION(INSTALL_LIBS "Set when you want to install libraries" OFF)
	ENDIF()
ENDIF()


I believe that's the reason :)

I suppose the test was expecting to detect the type of machine, while it 
is based on the type of backend...
This should be fixed in "bullet" package, either by testing Ninja 
backend as well, or changing the test (I don't know exactly what he's 
trying to test...)

Regards,

-- 
Cédric



More information about the buildroot mailing list