Re: [CMake] TRY_COMPILE and CMAKE_C_FLAGS

2006-10-21 Thread Filipe Sousa
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

[CMake] TRY_COMPILE and CMAKE_C_FLAGS

2006-10-21 Thread Gregor Jasny
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