Detect OpenMP properly.

This commit is contained in:
castano
2010-03-16 22:31:27 +00:00
parent 96f22f8cd4
commit 1fafffd8af
3 changed files with 14 additions and 2 deletions

View File

@ -71,9 +71,10 @@ typedef ULONG_PTR DWORD_PTR;
#include "stb/stb_dxt.h"
#endif
#pragma message(NV_FILE_LINE "FIXME: Define HAVE_OPENMP from cmake.")
#define HAVE_OPENMP
// OpenMP
#if defined (HAVE_OPENMP)
#include <omp.h>
#endif
using namespace nv;
using namespace nvtt;