Fix Window-GPU build
authorRoland Schulz <roland@utk.edu>
Tue, 27 Nov 2012 02:12:26 +0000 (21:12 -0500)
committerRoland Schulz <roland@utk.edu>
Tue, 27 Nov 2012 23:25:44 +0000 (18:25 -0500)
commita93d97bf8c7bfbfbf592585dd92ff93f088e0726
tree009ed9dd13db03c777ef8978563b0521f24223b7
parent777838f3fb94d6193afa986afb468c1b4367dacd
Fix Window-GPU build

7631a13fc278 broke the Windows build.
Cmake bug 8189 makes it impossible to set include
directories properly per file.
This temporary solution uses two solutions for
Windows / non-Windows. The non-Windows solution
uses COMPILE_FLAGS but doesn't work on Windows,
some IDE and potentially other compilers.
The Windows solution adds the include directory
for all source files, even those which don't
require CUDA.

This should be replace with a proper solution.

Change-Id: I3c581f2c34ea8c7af60b8c82aac52ac2ab9cf981
src/gmxlib/CMakeLists.txt