[cmake-developers] [CMake 0013895]: CMake docs: suggestion for impovement in OpenMP section

Mantis Bug Tracker mantis at public.kitware.com
Thu Feb 7 05:58:31 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13895 
====================================================================== 
Reported By:                Sylwester Arabas
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13895
Category:                   Documentation
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-02-07 05:58 EST
Last Modified:              2013-02-07 05:58 EST
====================================================================== 
Summary:                    CMake docs: suggestion for impovement in OpenMP
section
Description: 
The CMake FindOpenMP docs say that "If the compiler supports OpenMP, the flags
required to compile with openmp support are set." This might be misleading as
these flags are not set for any targets, but instead some variables with these
flags inside are made available to the user.

Furthermore, it might be worth to mention how to use these variables, e.g.:

if (OPENMP_FOUND)
  set_target_properties(... PROPERTIES LINK_FLAGS ${OpenMP_CXX_FLAGS})
  set_target_properties(... PROPERTIES COMPILE_FLAGS ${OpenMP_CXX_FLAGS})
endif()

HTH,
Sylwester
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-02-07 05:58 Sylwester ArabasNew Issue                                    
======================================================================




More information about the cmake-developers mailing list