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