CMake: PRefix config opt with CONFIG_
This commit is contained in:
@@ -46,6 +46,13 @@ else()
|
||||
set(CONFIG_ENABLE_DEBUG_LOCKS FALSE)
|
||||
endif()
|
||||
|
||||
# Set the world thread variable for config.h
|
||||
if(WORLD_USE_BODY_THREAD)
|
||||
set(CONFIG_WORLD_USE_BODY_THREAD TRUE)
|
||||
else()
|
||||
unset(CONFIG_WORLD_USE_BODY_THREAD)
|
||||
endif()
|
||||
|
||||
# Set the timeout variable for config.h
|
||||
set(CONFIG_DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS ${DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS})
|
||||
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
#define CONFIG_MRNTT_DEVMGR_REATTACHER_PERIOD_MS @MRNTT_DEVMGR_REATTACHER_PERIOD_MS@
|
||||
|
||||
/* World thread configuration */
|
||||
#cmakedefine WORLD_USE_BODY_THREAD
|
||||
#cmakedefine CONFIG_WORLD_USE_BODY_THREAD
|
||||
|
||||
/* Debug locking configuration */
|
||||
#cmakedefine CONFIG_ENABLE_DEBUG_LOCKS
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ Mind::Mind(void)
|
||||
std::make_shared<MindThread>(ComponentThread::SIMULATOR, *this),
|
||||
std::make_shared<MindThread>(ComponentThread::SUBCONSCIOUS, *this),
|
||||
std::make_shared<MindThread>(ComponentThread::BODY, *this)
|
||||
#ifndef WORLD_USE_BODY_THREAD
|
||||
#ifndef CONFIG_WORLD_USE_BODY_THREAD
|
||||
, std::make_shared<MindThread>(ComponentThread::WORLD, *this)
|
||||
#endif
|
||||
},
|
||||
@@ -27,7 +27,7 @@ Mind::Mind(void)
|
||||
subconscious(*this, componentThreads[2]),
|
||||
body(*this, componentThreads[3]),
|
||||
world(*this,
|
||||
#ifndef WORLD_USE_BODY_THREAD
|
||||
#ifndef CONFIG_WORLD_USE_BODY_THREAD
|
||||
componentThreads[4]
|
||||
#else
|
||||
componentThreads[3]
|
||||
|
||||
Reference in New Issue
Block a user