1
- macro (include_all_source_ExecutionGraph
2
- SRC
3
- INC
4
- INCLUDE_DIRS
5
- DEPENDING_TARGETS # Input variable names
6
- ExecutionGraph_ROOT_DIR
7
- ExecutionGraph_BINARY_DIR )
8
-
9
- # WRITE CONFIGURATION FILE
1
+ function (include_all_source_ExecutionGraph
2
+ SRC
3
+ INC
4
+ INCLUDE_DIRS
5
+ DEPENDING_TARGETS # Input variable names
6
+ ExecutionGraph_ROOT_DIR
7
+ ExecutionGraph_BINARY_DIR )
8
+
9
+ # Write Config files
10
10
include (${ExecutionGraph_ROOT_DIR} /cmake/WriteConfigFile.cmake)
11
11
set (ExecutionGraph_CONFIG_FILE ${ExecutionGraph_BINARY_DIR} /include /executionGraph/config/Config.hpp)
12
12
message (STATUS "ExecutionGraph: Write config file ${ExecutionGraph_CONFIG_FILE} " )
13
13
ExecutionGraph_write_config_file( ${ExecutionGraph_CONFIG_FILE} ${ExecutionGraph_ROOT_DIR} )
14
- #=========================
15
14
16
15
# Add all external sources/headers
17
16
# include(${ExecutionGraph_ROOT_DIR}/cmake/DefineExecutionGraphExternalSources.cmake)
@@ -25,6 +24,7 @@ macro(include_all_source_ExecutionGraph
25
24
${ExecutionGraph_ROOT_DIR} /src/LogicNode.cpp
26
25
27
26
${ExecutionGraph_ROOT_DIR} /src/FileSystem.cpp
27
+ PARENT_SCOPE
28
28
)
29
29
30
30
set (${INC}
@@ -53,11 +53,13 @@ macro(include_all_source_ExecutionGraph
53
53
${ExecutionGraph_ROOT_DIR} /include /executionGraph/graphs/ExecutionTreeInOut.hpp
54
54
55
55
${ExecutionGraph_CONFIG_FILE}
56
+ PARENT_SCOPE
56
57
)
57
58
58
59
set (${INCLUDE_DIRS}
59
60
$<BUILD_INTERFACE:${ExecutionGraph_ROOT_DIR} /include >
60
61
$<BUILD_INTERFACE:${ExecutionGraph_BINARY_DIR} /include >
62
+ PARENT_SCOPE
61
63
)
62
64
63
65
include (InstallMacros)
@@ -66,13 +68,13 @@ macro(include_all_source_ExecutionGraph
66
68
if ("${postfix} " STREQUAL "" )
67
69
message (FATAL_ERROR "wrong path ${PATH} " )
68
70
endif ()
69
- install ( FILES ${file} DESTINATION "include/${postfix} " )
71
+ install (FILES ${file} DESTINATION "include/${postfix} " )
70
72
endforeach ()
71
73
72
- endmacro ()
74
+ endfunction ()
73
75
74
76
75
- macro (setTargetCompileOptionsExecutionGraph target )
77
+ function (setTargetCompileOptionsExecutionGraph target )
76
78
77
79
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR
78
80
CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" )
@@ -91,11 +93,10 @@ macro(setTargetCompileOptionsExecutionGraph target)
91
93
message (ERROR "MSVC is not yet supported!" )
92
94
endif ()
93
95
94
-
95
96
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
96
97
# with clang 5.0.1: -fsanitize=address produces weird output in lldb for std::string ...
97
- list (APPEND CXX_FLAGS_DEBUG "-fsanitize=address" "-fsanitize=leak " )
98
- set (LINKER_FLAGS "${LINKER_FLAGS} -fsanitize=leak -fsanitize=address -lc++experimental" )
98
+ list (APPEND CXX_FLAGS_DEBUG "-fsanitize=thread " )
99
+ set (LINKER_FLAGS "${LINKER_FLAGS} -fsanitize=thread -lc++experimental" )
99
100
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" )
100
101
list (APPEND CXX_FLAGS_DEBUG "-fsanitize=address" )
101
102
set (LINKER_FLAGS "${LINKER_FLAGS} -fsanitize=address -lc++experimental" )
@@ -119,4 +120,4 @@ macro(setTargetCompileOptionsExecutionGraph target)
119
120
)
120
121
endif ()
121
122
122
- endmacro ()
123
+ endfunction ()
0 commit comments