Gregor Jasny wrote:
> Hi,
>
> I want to test if the current GNU compiler accept the -fopenmp flag.
INCLUDE(CheckCCompilerFlag)
CHECK_C_COMPILER_FLAG(-fopenmp HAVE_OPENMP)
--
Filipe Sousa
signature.asc
Description: OpenPGP digital signature
___
CMake
Hi,
I want to test if the current GNU compiler accept the -fopenmp flag.
In my cmake module I have the following test:
TRY_COMPILE( OPENMP_COMPILED
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/cmake/Modules/CheckForOpenMP.c
CMAKE_FLAGS -DCMAKE_C_FLAGS:STRING="-fopenmp"
OUT