Fix that no OpenMP flags are used with GMX_OPENMP=no
authorRoland Schulz <roland@utk.edu>
Mon, 8 Oct 2012 21:14:47 +0000 (17:14 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 30 Oct 2012 03:32:46 +0000 (04:32 +0100)
commit2b20403823e1376b134979933fdc3dd28071e2b9
treee34177e6303665c8d1dc80294c682ba387e85d0d
parentec0139038018573e32eb78ba6305143c5569b2a6
Fix that no OpenMP flags are used with GMX_OPENMP=no

If OpenMP flags were set because find_package(OpenMP) could
find something but GMX_OPENMP was false (either set by user
or because find_package(OpenMP) was only partial succesful)
then compiler or linker flags was set which were not needed.
This could cause undefined OpenMP linker errors with
GMX_OPENMP=no.

Fixes part of #1021

Change-Id: I9b66a8c89a84374081886cd2eeb46c87664c1e39
CMakeLists.txt