Skip to content

Commit a278045

Browse files
committed
Allow the use of omp.h from the build directory.
1 parent 3cf085d commit a278045

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libompd/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
66

77
include_directories (
88
${CMAKE_CURRENT_SOURCE_DIR}
9+
${LIBOMP_INCLUDE_DIR}
910
)
1011

1112
INSTALL( TARGETS ompd

runtime/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,3 +400,7 @@ endif()
400400

401401
add_subdirectory(src)
402402
add_subdirectory(test)
403+
404+
# make these variables available for tools/libompd:
405+
set(LIBOMP_LIBRARY_DIR ${LIBOMP_LIBRARY_DIR} PARENT_SCOPE)
406+
set(LIBOMP_INCLUDE_DIR ${LIBOMP_INCLUDE_DIR} PARENT_SCOPE)

0 commit comments

Comments
 (0)