Skip to content

Commit 5f9d73c

Browse files
committed
fix: PROJECT_IS_TOP_LEVEL can only be used *after* the project call
1 parent 84b7087 commit 5f9d73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.25 FATAL_ERROR)
22

33

44
# Set defaults before project call
5-
if(PROJECT_IS_TOP_LEVEL)
5+
if(CMAKE_CURRENT_LIST_FILE STREQUAL CMAKE_SOURCE_DIR AND APPLE)
66
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE INTERNAL "" FORCE)
77
endif()
88

0 commit comments

Comments
 (0)