Skip to content

Commit 05a501c

Browse files
committed
build: cmake: remove old cmake policies for examples and tests
1 parent 281d20d commit 05a501c

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

examples/CMakeLists.txt.in

-10
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@ project (DNNL_EXAMPLES)
2828
set(DNNL_CPU_RUNTIME "@DNNL_CPU_RUNTIME@")
2929
set(DNNL_GPU_RUNTIME "@DNNL_GPU_RUNTIME@")
3030

31-
# link_directories() are relative to the source dir
32-
if(POLICY CMP0015)
33-
cmake_policy(SET CMP0015 NEW)
34-
endif()
35-
36-
# Use <PackageName>_ROOT env. variable as a prefix
37-
if(POLICY CMP0074)
38-
cmake_policy(SET CMP0074 NEW)
39-
endif()
40-
4131
set(DNNL_INSTALL_MODE "@DNNL_INSTALL_MODE@")
4232
set(IS_NEW_DIR_LAYOUT FALSE)
4333
if(DNNL_INSTALL_MODE STREQUAL "BUNDLE_V2")

tests/CMakeLists.txt

-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ if (NOT DNNL_BUILD_TESTS)
1818
return()
1919
endif()
2020

21-
# Do not export symbols from executables
22-
if(POLICY CMP0065)
23-
cmake_policy(SET CMP0065 NEW)
24-
endif()
25-
2621
# propagate TEST specific flags
2722
append(CMAKE_C_FLAGS "${CMAKE_TEST_CCXX_FLAGS}")
2823
append(CMAKE_CXX_FLAGS "${CMAKE_TEST_CCXX_FLAGS}")

0 commit comments

Comments
 (0)