Commit a94f6b2e authored by Dominik Charousset's avatar Dominik Charousset

Suppress flag and compiler setup in subdir mode

Avoid touching compiler flags if CAF builds as a sub directory of
another CMake project. Further, check whether the parent project has
already select an OpenSSL version for us and use that rather than trying
to locate it ourselves.
parent b05a4b7b
This diff is collapsed.
......@@ -2,7 +2,7 @@ project(caf_examples CXX)
add_custom_target(all_examples)
include_directories(${LIBCAF_INCLUDE_DIRS})
include_directories(${CAF_INCLUDE_DIRS})
macro(add folder name)
add_executable(${name} ${folder}/${name}.cpp ${ARGN})
......
......@@ -3,7 +3,7 @@ project(caf_examples_opencl CXX)
if(OpenCL_LIBRARIES AND NOT CAF_NO_EXAMPLES)
add_custom_target(opencl_examples)
include_directories(${LIBCAF_INCLUDE_DIRS})
include_directories(${CAF_INCLUDE_DIRS})
if(${CMAKE_SYSTEM_NAME} MATCHES "Window")
set(WSLIB -lws2_32)
else()
......
......@@ -2,7 +2,7 @@ project(caf_tools CXX)
add_custom_target(all_tools)
include_directories(${LIBCAF_INCLUDE_DIRS})
include_directories(${CAF_INCLUDE_DIRS})
macro(add name)
add_executable(${name} ${name}.cpp ${ARGN})
......
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