Commit 4be15b2c authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

minor cmake updates for mac build



Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 8fe92888
......@@ -49,9 +49,9 @@ if(NOT CUDA_FOUND)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNO_GPU")
endif()
if(OpenMP_FOUND)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
endif()
#if(OpenMP_FOUND and NOT APPLE)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
#endif()
include_directories(${CMAKE_BINARY_DIR}/tpls/cppmicroservices/include)
include_directories(${CMAKE_BINARY_DIR}/tpls/cppmicroservices/framework/include)
......
......@@ -21,12 +21,19 @@ add_library(${LIBRARY_NAME}
tensor_network.cpp
num_server.cpp)
if (CUDA_FOUND)
target_include_directories(${LIBRARY_NAME}
PUBLIC .
${CMAKE_SOURCE_DIR}/tpls/ExaTensor/include
${CMAKE_SOURCE_DIR}/src/exatn
PRIVATE
${CUDA_INCLUDE_DIRS})
else()
target_include_directories(${LIBRARY_NAME}
PUBLIC .
${CMAKE_SOURCE_DIR}/tpls/ExaTensor/include
${CMAKE_SOURCE_DIR}/src/exatn)
endif()
exatn_enable_rpath(${LIBRARY_NAME})
......
Supports Markdown
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