[CMake] empty list evaluates to false?

🐋 Jan Hegewald jan.hegewald at awi.de
Mon Feb 29 09:11:31 EST 2016


Hi cmakers,
can I create an empty list which evaluates to true? The way I tried they evaluate to false:

set(BLAS_LIBRARIES "") # trying to create an empty list
if(BLAS_LIBRARIES)
	# not called
endif()

Cheers,
Jan


More information about the CMake mailing list