Skip to content
Permalink
Browse files

Fix poclu: don't install it, it's not required

Instead add misc.c to target sources, it's only used
to open/read/write files anyway.
  • Loading branch information
franz committed Feb 18, 2018
1 parent b59c0d0 commit 159b1fb02d21d8bcf0be4f41503da1b3e1963106
Showing with 3 additions and 17 deletions.
  1. +2 −2 bin/CMakeLists.txt
  2. +0 −3 include/CMakeLists.txt
  3. +1 −12 lib/poclu/CMakeLists.txt
@@ -23,9 +23,9 @@
#
#=============================================================================

add_executable(poclcc poclcc.c)
add_executable(poclcc poclcc.c "${CMAKE_SOURCE_DIR}/lib/poclu/misc.c")

target_link_libraries(poclcc ${POCLU_LINK_OPTIONS})
target_link_libraries(poclcc ${OPENCL_LIBS})

install(TARGETS "poclcc" RUNTIME
DESTINATION "${POCL_INSTALL_PUBLIC_BINDIR}")
@@ -29,6 +29,3 @@ set(PRIVATE_HEADERS _enable_all_exts.h _builtin_renames.h _kernel.h _kernel_c.h

install(FILES ${PRIVATE_HEADERS}
DESTINATION ${POCL_INSTALL_PRIVATE_HEADER_DIR})

install(FILES "poclu.h"
DESTINATION ${POCL_INSTALL_PUBLIC_HEADER_DIR})
@@ -26,15 +26,4 @@
if(MSVC)
set_source_files_properties( bswap.c misc.c cl_half.c PROPERTIES LANGUAGE CXX )
endif(MSVC)
add_library("poclu" bswap.c misc.c cl_half.c)

set_target_properties("poclu" PROPERTIES SOVERSION "${LIB_API_VERSION}" VERSION "${LIB_BUILD_VERSION}")

#libpoclu_la_LIBADD = @OPENCL_LIBS@
target_link_libraries("poclu" ${LIBMATH} ${OPENCL_LIBS})


install(TARGETS "poclu"
LIBRARY DESTINATION ${POCL_INSTALL_PUBLIC_LIBDIR}
ARCHIVE DESTINATION ${POCL_INSTALL_PUBLIC_LIBDIR}/static)

add_library("poclu" STATIC bswap.c misc.c cl_half.c)

0 comments on commit 159b1fb

Please sign in to comment.
You can’t perform that action at this time.