Detect OpenMP properly.
This commit is contained in:
parent
96f22f8cd4
commit
1fafffd8af
@ -111,6 +111,15 @@ ELSE(OPENEXR_FOUND)
|
||||
MESSAGE(STATUS "Looking for OpenEXR - not found")
|
||||
ENDIF(OPENEXR_FOUND)
|
||||
|
||||
# OpenMP
|
||||
INCLUDE(FindOpenMP)
|
||||
IF(OPENMP_FOUND)
|
||||
SET(HAVE_OPENMP ${OPENMP_FOUND} CACHE BOOL "Set to TRUE if OpenMP is found, FALSE otherwise")
|
||||
MESSAGE(STATUS "Looking for OpenMP - found")
|
||||
ELSE(OPENMP_FOUND)
|
||||
MESSAGE(STATUS "Looking for OpenMP - not found")
|
||||
ENDIF(OPENMP_FOUND)
|
||||
|
||||
# Qt
|
||||
FIND_PACKAGE(Qt4)
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
#cmakedefine HAVE_EXECINFO_H
|
||||
#cmakedefine HAVE_MALLOC_H
|
||||
|
||||
#cmakedefine HAVE_OPENMP
|
||||
|
||||
#cmakedefine HAVE_PNG
|
||||
#cmakedefine HAVE_JPEG
|
||||
#cmakedefine HAVE_TIFF
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user