Skip to content

Commit ae6b051

Browse files
mcfadden8jprotze
authored andcommitted
making ompd dependent upon omp being built first
1 parent 7288d8d commit ae6b051

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libompd/src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
project (libompd)
22

3+
message( "LIBOMP_INCLUDE_DIR = ${LIBOMP_INCLUDE_DIR}" )
34
add_library (ompd SHARED TargetValue.cpp omp-debug.cpp)
45

6+
add_dependencies(ompd omp) # ensure generated import library is created first
7+
58
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
9+
message( "CMAKE_CXX_FLAGS = ${CMAKE_CXX_FLAGS}" )
610

711
include_directories (
812
${CMAKE_CURRENT_SOURCE_DIR}

0 commit comments

Comments
 (0)