diff --git a/doc/examples/CMakeLists.txt b/doc/examples/CMakeLists.txt index 136d69b..957ba36 100644 --- a/doc/examples/CMakeLists.txt +++ b/doc/examples/CMakeLists.txt @@ -22,15 +22,16 @@ include_directories( if(CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_CXX_FLAGS "-std=c++11") + set (EXTRA_LIBS dl) endif() IF(MSVC) -set (NETWORK_LIBS ws2_32) + set (EXTRA_LIBS ws2_32) ENDIF() add_executable(examples ${EXAMPLES_SOURCES}) target_link_libraries(examples embb_dataflow_cpp embb_algorithms_cpp embb_mtapi_cpp embb_mtapi_network_c embb_mtapi_opencl_c embb_mtapi_c embb_base_cpp embb_base_c embb_containers_cpp - ${NETWORK_LIBS} ${compiler_libs}) + ${EXTRA_LIBS} ${compiler_libs}) CopyBin(BIN examples DEST ${local_install_dir}) diff --git a/mtapi_opencl_c/CMakeLists.txt b/mtapi_opencl_c/CMakeLists.txt index 08bd57e..6fe7561 100644 --- a/mtapi_opencl_c/CMakeLists.txt +++ b/mtapi_opencl_c/CMakeLists.txt @@ -15,7 +15,7 @@ ENDFOREACH(src_tmp) ENDIF() IF(CMAKE_COMPILER_IS_GNUCC) - set (EMBB_MAPI_OPENCL_LIBS dl) + set (EMBB_MTAPI_OPENCL_C_LIBS dl) ENDIF() # Execute the GroupSources macro @@ -38,7 +38,7 @@ target_link_libraries(embb_mtapi_opencl_c embb_mtapi_c embb_base_c) if (BUILD_TESTS STREQUAL ON) include_directories(${CMAKE_CURRENT_BINARY_DIR}/../partest/include) add_executable (embb_mtapi_opencl_c_test ${EMBB_MTAPI_OPENCL_TEST_SOURCES}) - target_link_libraries(embb_mtapi_opencl_c_test embb_mtapi_opencl_c embb_mtapi_c partest embb_base_c ${compiler_libs} ${EMBB_MAPI_OPENCL_LIBS}) + target_link_libraries(embb_mtapi_opencl_c_test embb_mtapi_opencl_c embb_mtapi_c partest embb_base_c ${compiler_libs} ${EMBB_MTAPI_OPENCL_C_LIBS}) CopyBin(BIN embb_mtapi_opencl_c_test DEST ${local_install_dir}) endif()