mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-30 23:33:02 +00:00
cmake: Don't enforce Clang submodule requirement
This commit is contained in:
parent
53d4ad31e6
commit
7821bc1ab3
1 changed files with 11 additions and 6 deletions
|
@ -69,7 +69,10 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/clang" "${CMAKE_CURRENT
|
||||||
|
|
||||||
# CMake Modules
|
# CMake Modules
|
||||||
include("util")
|
include("util")
|
||||||
|
if (EXISTS "${CMAKE_SOURCE_DIR}/cmake/Clang/Clang.cmake")
|
||||||
include("Clang")
|
include("Clang")
|
||||||
|
set(HAVE_CLANG ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Detect Build Type
|
# Detect Build Type
|
||||||
if("${CMAKE_SOURCE_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
|
if("${CMAKE_SOURCE_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
|
||||||
|
@ -523,11 +526,13 @@ add_library(${PROJECT_NAME} MODULE
|
||||||
)
|
)
|
||||||
|
|
||||||
# Clang-Format
|
# Clang-Format
|
||||||
|
if(HAVE_CLANG)
|
||||||
clang_format(
|
clang_format(
|
||||||
TARGETS ${PROJECT_NAME}
|
TARGETS ${PROJECT_NAME}
|
||||||
DEPENDENCY
|
DEPENDENCY
|
||||||
VERSION 9.0.0
|
VERSION 9.0.0
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Include Directories
|
# Include Directories
|
||||||
target_include_directories(${PROJECT_NAME}
|
target_include_directories(${PROJECT_NAME}
|
||||||
|
|
Loading…
Reference in a new issue