且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

CMake使用特定的Boost版本

更新时间:2023-10-22 22:55:46

您应使用格式如下:

 find_package(package version EXACT REQUIRED COMPONENTS components…) 

因此,如果您恰好需要1.48,则应使用(示例):

so if you need exactly 1.48 then you should use (example):

 find_package(Boost 1.48 EXACT REQUIRED COMPONENTS system thread date_time)