diff --git a/CMakeLists.txt b/CMakeLists.txt index bcd31ca8..d906dc3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,8 +78,8 @@ target_link_libraries(obs-websocket # --- Windows-specific build settings and tasks --- if(WIN32) - if(NOT DEFINED OBS_FRONTEND_LIB) - set(OBS_FRONTEND_LIB "OBS_FRONTEND_LIB-NOTFOUND" CACHE FILEPATH "OBS frontend library") + set(OBS_FRONTEND_LIB "NOTFOUND" CACHE FILEPATH "OBS frontend library") + if(OBS_FRONTEND_LIB STREQUAL "NOTFOUND") message(FATAL_ERROR "Could not find OBS Frontend API's library !") endif()