File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -288,10 +288,25 @@ if(OPENMP_STANDALONE_BUILD)
288
288
REQUIRED
289
289
)
290
290
291
+ find_path (
292
+ LIBOMP_INCLUDE_DIR
293
+ NAMES
294
+ omp.h
295
+ HINTS
296
+ ${COMPILER_RESOURCE_DIR} /include
297
+ ${CMAKE_INSTALL_PREFIX} /include
298
+ )
299
+
300
+ get_filename_component (LIBOMP_LIBRARY_DIR ${LIBOMP_STANDALONE} DIRECTORY )
301
+
291
302
set (OPENMP_TEST_FLAGS "" CACHE STRING
292
303
"Extra compiler flags to send to the test compiler." )
293
304
set (OPENMP_TEST_OPENMP_FLAGS ${OPENMP_TEST_COMPILER_OPENMP_FLAGS} CACHE STRING
294
305
"OpenMP compiler flag to use for testing OpenMP runtime libraries." )
306
+ set (LIBOMPTARGET_OPENMP_HEADER_FOLDER "${LIBOMP_INCLUDE_DIR} " CACHE STRING
307
+ "Path to folder containing omp.h" )
308
+ set (LIBOMPTARGET_OPENMP_HOST_RTL_FOLDER "${LIBOMP_LIBRARY_DIR} " CACHE STRING
309
+ "Path to folder containing libomp.so, and libLLVMSupport.so with profiling enabled" )
295
310
endif ()
296
311
297
312
macro (pythonize_bool var )
You can’t perform that action at this time.
0 commit comments