Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tsd/apps/interactive/viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ project(tsdViewer)
project_add_executable(tsdViewer.cpp)
project_link_libraries(PUBLIC tsd_ui_imgui)
if(TSD_USE_LUA)
project_compile_definitions(PRIVATE TSD_USE_LUA=1)
project_compile_definitions(PRIVATE TSD_USE_LUA)
endif()
2 changes: 1 addition & 1 deletion tsd/src/tsd/scripting/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PRIVATE

project_compile_definitions(
PUBLIC
TSD_USE_LUA=1
TSD_USE_LUA
PRIVATE
TSD_SOURCE_DIR="${CMAKE_SOURCE_DIR}"
)
Expand Down
2 changes: 1 addition & 1 deletion tsd/src/tsd/ui/imgui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ project_sources(PRIVATE

if(TSD_USE_LUA)
project_link_libraries(PRIVATE tsd_lua tsd_ext_sol2)
project_compile_definitions(PRIVATE TSD_USE_LUA=1)
project_compile_definitions(PRIVATE TSD_USE_LUA)
endif()

project_link_libraries(
Expand Down
2 changes: 1 addition & 1 deletion tsd/src/tsd/ui/imgui/ExtensionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void ExtensionManager::rebuildMenuTree()

std::vector<std::string> ExtensionManager::getSearchPaths()
{
#if TSD_USE_LUA
#ifdef TSD_USE_LUA
return scripting::LuaContext::defaultSearchPaths();
#else
return {};
Expand Down