mirror of
https://github.com/dpogue/CMake-MetalShaderSupport.git
synced 2025-04-04 13:05:06 +00:00
Apparently it's wrong to call enable_language before project
This commit is contained in:
parent
0c52d6e2af
commit
9c7adfe297
1 changed files with 2 additions and 2 deletions
|
@ -6,11 +6,11 @@ cmake_minimum_required(VERSION 3.12)
|
|||
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/cmake")
|
||||
include(CheckLanguage)
|
||||
|
||||
project(MetalTest)
|
||||
|
||||
check_language(Metal)
|
||||
if(CMAKE_Metal_COMPILER)
|
||||
enable_language(Metal)
|
||||
endif()
|
||||
|
||||
project(MetalTest)
|
||||
|
||||
add_subdirectory(example)
|
||||
|
|
Loading…
Add table
Reference in a new issue