Skip to content

Commit

Permalink
Use a better way to specify using the fronend API
Browse files Browse the repository at this point in the history
"Better" here is used loosely, as obsproject/obs-plugintemplate#103 is a problem.
  • Loading branch information
Susko3 committed Nov 22, 2023
1 parent 5c4fee9 commit 4b980f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ add_library(${CMAKE_PROJECT_NAME} MODULE)
find_package(libobs REQUIRED)
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE OBS::libobs)

if(ENABLE_FRONTEND_API OR 1)
if(ENABLE_FRONTEND_API)
find_package(obs-frontend-api REQUIRED)
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE OBS::obs-frontend-api)
endif()
Expand Down
8 changes: 4 additions & 4 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"CMAKE_OSX_DEPLOYMENT_TARGET": "11.0",
"CODESIGN_IDENTITY": "$penv{CODESIGN_IDENT}",
"CODESIGN_TEAM": "$penv{CODESIGN_TEAM}",
"ENABLE_FRONTEND_API": false,
"ENABLE_FRONTEND_API": true,
"ENABLE_QT": false
}
},
Expand Down Expand Up @@ -53,7 +53,7 @@
"cacheVariables": {
"QT_VERSION": "6",
"CMAKE_SYSTEM_VERSION": "10.0.18363.657",
"ENABLE_FRONTEND_API": false,
"ENABLE_FRONTEND_API": true,
"ENABLE_QT": false
}
},
Expand Down Expand Up @@ -81,7 +81,7 @@
"cacheVariables": {
"QT_VERSION": "6",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"ENABLE_FRONTEND_API": false,
"ENABLE_FRONTEND_API": true,
"ENABLE_QT": false
}
},
Expand Down Expand Up @@ -110,7 +110,7 @@
"cacheVariables": {
"QT_VERSION": "6",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"ENABLE_FRONTEND_API": false,
"ENABLE_FRONTEND_API": true,
"ENABLE_QT": false
}
},
Expand Down

0 comments on commit 4b980f2

Please sign in to comment.