ggandda / simd-cxx

Automatically exported from code.google.com/p/simd-cxx
0 stars 0 forks source link

Errors invoking FindBoost in CMakeLists.txt #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The 5 CMakeLists.txt's under SIMD_ROOT/demo/{hello,tweet,ishapes,latency,ping} 
all try to find the boost library with:

  find_package (Boost REQUIRED COMPONENTS thread program_options system)

The correct way should really be:

  find_package (Boost COMPONENTS thread program_options system REQUIRED)

Original issue reported on code.google.com by nan...@gmail.com on 21 Dec 2010 at 4:20

GoogleCodeExporter commented 8 years ago
Upon further reviewing the documentation for find_package, the line in question 
should really be either:

  find_package (Boost REQUIRED thread program_options system)

or 

  find_package (Boost COMPONENTS thread program_options system)

I think using REQUIRED is more appropriate.  Here is the updated diff file:

Original comment by nan...@gmail.com on 21 Dec 2010 at 4:37

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by nan...@gmail.com on 23 May 2011 at 4:52