Unverified Commit e81cf69a authored by Adam Procter's avatar Adam Procter Committed by GitHub

Fix build error on MacOS by not requiring resource_generator (#438)

parent 9a7ddbc0
...@@ -11,24 +11,26 @@ ...@@ -11,24 +11,26 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
set (SRC if (NGRAPH_CPU_ENABLE AND NOT APPLE)
main.cpp set (SRC
util.cpp main.cpp
uncomment.cpp util.cpp
header_rewrite.cpp uncomment.cpp
) header_rewrite.cpp
)
add_executable(resource_generator ${SRC}) add_executable(resource_generator ${SRC})
add_dependencies(resource_generator ext_llvm eigen ext_mkldnn) add_dependencies(resource_generator ext_llvm eigen ext_mkldnn)
set(HEADER_PATHS set(HEADER_PATHS
"EIGEN_HEADERS_PATH=\"${EIGEN_INCLUDE_DIR}\"" "EIGEN_HEADERS_PATH=\"${EIGEN_INCLUDE_DIR}\""
"MKLDNN_HEADERS_PATH=\"${MKLDNN_INCLUDE_DIR}\"" "MKLDNN_HEADERS_PATH=\"${MKLDNN_INCLUDE_DIR}\""
"CLANG_BUILTIN_HEADERS_PATH=\"${LLVM_LIB_DIR}/clang/5.0.0/include\"" "CLANG_BUILTIN_HEADERS_PATH=\"${LLVM_LIB_DIR}/clang/5.0.0/include\""
"TBB_HEADERS_PATH=\"${TBB_ROOT}/include\"" "TBB_HEADERS_PATH=\"${TBB_ROOT}/include\""
"NGRAPH_HEADERS_PATH=\"${NGRAPH_INCLUDE_PATH}\"" "NGRAPH_HEADERS_PATH=\"${NGRAPH_INCLUDE_PATH}\""
) )
message("HEADER_PATHS ${HEADER_PATHS}") message("HEADER_PATHS ${HEADER_PATHS}")
set_source_files_properties(main.cpp PROPERTIES COMPILE_DEFINITIONS "${HEADER_PATHS}") set_source_files_properties(main.cpp PROPERTIES COMPILE_DEFINITIONS "${HEADER_PATHS}")
endif()
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