File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,17 @@ if (NOT DEFINED LEVEL_ZERO_LIBRARY OR NOT DEFINED LEVEL_ZERO_INCLUDE_DIR)
17
17
)
18
18
19
19
# Suppress some pedantic warnings for Level Zero build
20
+ set (CMAKE_CXX_FLAGS_BAK "${CMAKE_CXX_FLAGS} " )
20
21
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-variable" )
21
22
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic" )
22
23
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-stringop-truncation" )
23
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option" )
24
24
25
25
FetchContent_MakeAvailable (level-zero-loader )
26
26
FetchContent_GetProperties (level-zero-loader )
27
27
28
+ # Restore original flags
29
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_BAK} " )
30
+
28
31
set (LEVEL_ZERO_LIBRARY ze_loader )
29
32
set (LEVEL_ZERO_INCLUDE_DIR
30
33
${level-zero-loader_SOURCE_DIR}/include CACHE PATH "Path to Level Zero Headers" )
You can’t perform that action at this time.
0 commit comments