Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想检测我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)