Skip to content

Commit

Permalink
Link aocl-utils library as needed for shared library build
Browse files Browse the repository at this point in the history
Link aocl-utils library as needed for shared library build for
both Linux and Windows

Change-Id: If52c00410d131236fac8821f9a25168771f366b4
  • Loading branch information
pradeeptrgit committed Dec 14, 2023
1 parent c8d8a70 commit da18bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1085,12 +1085,12 @@ if(ENABLE_EMBED_AOCLUTILS)
target_link_libraries(${PROJECT_NAME} "libstdc++.so")
endif ()

elseif(WIN32 AND BUILD_SHARED_LIBS)
elseif(BUILD_SHARED_LIBS)
if(LIBAOCLUTILS_LIBRARY_PATH AND LIBAOCLUTILS_INCLUDE_PATH)
target_include_directories(${PROJECT_NAME} PUBLIC ${LIBAOCLUTILS_INCLUDE_PATH})
target_link_libraries(${PROJECT_NAME} ${LIBAOCLUTILS_LIBRARY_PATH})
else()
message(FATAL_ERROR "Windows Shared Library build requires AOCL-Utils library and header path to be set! Please set the same using LIBAOCLUTILS_LIBRARY_PATH and LIBAOCLUTILS_INCLUDE_PATH options respectively")
message(FATAL_ERROR "Shared Library build requires AOCL-Utils library and header path to be set! Please set the same using LIBAOCLUTILS_LIBRARY_PATH and LIBAOCLUTILS_INCLUDE_PATH options respectively")

endif()

Expand Down

0 comments on commit da18bca

Please sign in to comment.