changeset 1033:c9e962c63595

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 24 Oct 2023 12:58:03 +0900
parents 793b21a8ea12
children 4761d569dcf5
files src/parallel_execution/CMakeLists.txt src/parallel_execution/gearsFile src/parallel_execution/hello_world src/parallel_execution/queue_test src/parallel_execution/rbtree_sync src/parallel_execution/stack_test
diffstat 6 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/CMakeLists.txt	Tue Oct 24 12:25:40 2023 +0900
+++ b/src/parallel_execution/CMakeLists.txt	Tue Oct 24 12:58:03 2023 +0900
@@ -28,7 +28,6 @@
     set( _MULTI_VALUE_ARGS SOURCES )
     cmake_parse_arguments( _Gears "${_OPTIONS_ARGS}" "${_ONE_VALUE_ARGS}" "${_MULTI_VALUE_ARGS}" ${ARGN} )
     set(DDIR "c-${_Gears_TARGET}")
-    add_definitions("-I ${DDIR}")
 
     set (_Gears_CSOURCES)
     foreach(i ${_Gears_SOURCES})
@@ -58,6 +57,7 @@
           COMMAND  "perl" "generate_context.pl" "-c" "${DDIR}" "-o" ${_Gears_TARGET} "-w" ${_Gears_CSOURCES}
     )
     add_executable(${_Gears_TARGET} ${_Gears_CSOURCES} ${DDIR}/${_Gears_TARGET}-context.c)
+    target_include_directories(${_Gears_TARGET} PRIVATE ${DDIR})
     target_link_libraries(${_Gears_TARGET} m pthread)
 endmacro()
 
Binary file src/parallel_execution/gearsFile has changed
Binary file src/parallel_execution/hello_world has changed
Binary file src/parallel_execution/queue_test has changed
Binary file src/parallel_execution/rbtree_sync has changed
Binary file src/parallel_execution/stack_test has changed