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                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to