Commit 0b99c783 authored by Andreas Adelmann's avatar Andreas Adelmann
Browse files

propagate correctly variables

parent cdf8553e
......@@ -244,3 +244,12 @@ ADD_SUBDIRECTORY (src)
IF (BUILD_OPAL_UNIT_TESTS)
ADD_SUBDIRECTORY(tests)
ENDIF (BUILD_OPAL_UNIT_TESTS)
# make variables visible in other CMakeKists files
set(OPAL_CXX_FLAGS ${OPAL_CXX_FLAGS}
CACHE INTERNAL "" FORCE
)
set(OPAL_LIBS ${OPAL_LIBS}
CACHE INTERNAL "" FORCE
)
......@@ -11,7 +11,8 @@ link_directories (
${CMAKE_SOURCE_DIR}/src
)
SET (IPPL_LIBS ippl)
SET (IPPL_LIBS ${OPAL_LIBS})
SET (COMPILE_FLAGS ${OPAL_CXX_FLAGS})
IF (ENABLE_OPENCL OR ENABLE_CUDA OR ENABLE_OPENMP)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment