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 @@ -284,10 +284,25 @@ if(OPENMP_STANDALONE_BUILD)
284
284
REQUIRED
285
285
)
286
286
287
+ find_path (
288
+ LIBOMP_INCLUDE_DIR
289
+ NAMES
290
+ omp.h
291
+ HINTS
292
+ ${COMPILER_RESOURCE_DIR} /include
293
+ ${CMAKE_INSTALL_PREFIX} /include
294
+ )
295
+
296
+ get_filename_component (LIBOMP_LIBRARY_DIR ${LIBOMP_STANDALONE} DIRECTORY )
297
+
287
298
set (OPENMP_TEST_FLAGS "" CACHE STRING
288
299
"Extra compiler flags to send to the test compiler." )
289
300
set (OPENMP_TEST_OPENMP_FLAGS ${OPENMP_TEST_COMPILER_OPENMP_FLAGS} CACHE STRING
290
301
"OpenMP compiler flag to use for testing OpenMP runtime libraries." )
302
+ set (LIBOMPTARGET_OPENMP_HEADER_FOLDER "${LIBOMP_INCLUDE_DIR} " CACHE STRING
303
+ "Path to folder containing omp.h" )
304
+ set (LIBOMPTARGET_OPENMP_HOST_RTL_FOLDER "${LIBOMP_LIBRARY_DIR} " CACHE STRING
305
+ "Path to folder containing libomp.so, and libLLVMSupport.so with profiling enabled" )
291
306
endif ()
292
307
293
308
macro (pythonize_bool var )
You can’t perform that action at this time.
0 commit comments