eATM

cmake打印所有变量

打印所有变量

get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
    message(STATUS "${_variableName}=${${_variableName}}")
endforeach()

 

打印环境变量

execute_process(COMMAND "${CMAKE_COMMAND}" "-E" "environment")

 

转载自:https://blog.csdn.net/oLuoJinFanHua12/article/details/115455247

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注