mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-15 00:05:06 +00:00
cmake: Fix Clang toolset support
This commit is contained in:
parent
bbfacbc30b
commit
2ac306aa31
1 changed files with 8 additions and 8 deletions
|
@ -74,24 +74,24 @@ set(PROJECT_COPYRIGHT_YEARS "2018 - 2020")
|
|||
# Setup / Bootstrap
|
||||
################################################################################
|
||||
|
||||
# Detect Build Type
|
||||
if("${CMAKE_SOURCE_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
|
||||
set(PropertyPrefix "")
|
||||
else()
|
||||
set(PropertyPrefix "${PROJECT_NAME}_")
|
||||
endif()
|
||||
|
||||
# Search Path
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/clang" "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
# CMake Modules
|
||||
include("util")
|
||||
## Clang Integration
|
||||
if(${PropertyPrefix}ENABLE_CLANG AND (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Clang/Clang.cmake"))
|
||||
if(${PropertyPrefix}ENABLE_CLANG AND (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/cmake/clang/Clang.cmake"))
|
||||
include("Clang")
|
||||
set(HAVE_CLANG ON)
|
||||
endif()
|
||||
|
||||
# Detect Build Type
|
||||
if("${CMAKE_SOURCE_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
|
||||
set(PropertyPrefix "")
|
||||
else()
|
||||
set(PropertyPrefix "${PROJECT_NAME}_")
|
||||
endif()
|
||||
|
||||
# Detect Architecture
|
||||
math(EXPR BITS "8*${CMAKE_SIZEOF_VOID_P}")
|
||||
if("${BITS}" STREQUAL "32")
|
||||
|
|
Loading…
Reference in a new issue