标签: cmake cpack
我想检测我的install(SCRIPT script.cmake)是在CPack(make package)下运行还是只是常规make install。 我尝试过使用:
install(SCRIPT script.cmake)
make package
make install
if(DEFINED CPACK_OUTPUT_CONFIG_FILE) if(DEFINED CPACK_PROJECT_CONFIG_FILE) if(DEFINED CPACK_GENERATOR)