mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Move config include path, so it works for the exported target
This commit is contained in:
@@ -66,9 +66,6 @@ endif()
|
||||
if(NOT INSTALLER_RUN)
|
||||
add_subdirectory(deps)
|
||||
|
||||
add_definitions(-DHAVE_CONFIG_H=1)
|
||||
include_directories("${CMAKE_BINARY_DIR}/config")
|
||||
|
||||
add_subdirectory(libobs)
|
||||
|
||||
if(WIN32)
|
||||
|
||||
@@ -270,6 +270,7 @@ endif()
|
||||
|
||||
target_include_directories(libobs PUBLIC
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
|
||||
"$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/config>"
|
||||
"$<INSTALL_INTERFACE:${OBS_INCLUDE_DESTINATION}>")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user