Commit e227f3dd authored by Dominik Charousset's avatar Dominik Charousset

Fix LDFLAGS setup for examples and tools

parent 9f916dcb
......@@ -5,16 +5,10 @@ add_custom_target(all_examples)
include_directories(${LIBCAF_INCLUDE_DIRS})
if(${CMAKE_SYSTEM_NAME} MATCHES "Window")
set(WSLIB -lws2_32)
else ()
set(WSLIB)
endif()
macro(add folder name)
add_executable(${name} ${folder}/${name}.cpp ${ARGN})
target_link_libraries(${name}
${LD_FLAGS}
${LDFLAGS}
${CAF_LIBRARIES}
${PTHREAD_LIBRARIES}
${WSLIB})
......
......@@ -5,16 +5,10 @@ add_custom_target(all_tools)
include_directories(${LIBCAF_INCLUDE_DIRS})
if(${CMAKE_SYSTEM_NAME} MATCHES "Window")
set(WSLIB -lws2_32)
else ()
set(WSLIB)
endif()
macro(add name)
add_executable(${name} ${name}.cpp ${ARGN})
target_link_libraries(${name}
${LD_FLAGS}
${LDFLAGS}
${CAF_LIBRARIES}
${PTHREAD_LIBRARIES}
${WSLIB})
......
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