mirror of
https://github.com/clearlinux/graphene.git
synced 2026-10-03 23:48:19 +00:00
[PAL] Select PAL targets in CMakeLists.txt
This commit is contained in:
+13
-2
@@ -4,5 +4,16 @@ set_property(GLOBAL PROPERTY ALLOW_DUPLICATE_CUSTOM_TARGETS ON)
|
||||
|
||||
project(graphene_pal)
|
||||
|
||||
add_subdirectory(src/host/Linux)
|
||||
add_subdirectory(src/host/Linux-SGX)
|
||||
if(NOT DEFINED SGX)
|
||||
set(SGX $ENV{SGX})
|
||||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
if(${SGX})
|
||||
message("PAL target: Linux SGX")
|
||||
add_subdirectory(src/host/Linux-SGX)
|
||||
else()
|
||||
message("PAL target: Linux")
|
||||
add_subdirectory(src/host/Linux)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user