File: 0010-enable-build-exe-by-default.patch

package info (click to toggle)
miopen 5.5.1%2Bdfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 23,988 kB
  • sloc: cpp: 229,870; lisp: 30,281; ansic: 1,518; sh: 392; makefile: 209; xml: 189; python: 56
file content (37 lines) | stat: -rw-r--r-- 1,259 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From: Xuanteng Huang <xuanteng.huang@outlook.com>
Date: Wed, 5 Jun 2024 19:56:06 +0800
Subject: enable build exe by default

Build the test_* executable targets by default.

Forwarded: not-needed
---
 addkernels/CMakeLists.txt | 2 +-
 test/CMakeLists.txt       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/addkernels/CMakeLists.txt b/addkernels/CMakeLists.txt
index f904146..7ae268f 100644
--- a/addkernels/CMakeLists.txt
+++ b/addkernels/CMakeLists.txt
@@ -26,6 +26,6 @@
 
 set(ADD_KERNELS_SOURCE include_inliner.cpp addkernels.cpp)
 
-add_executable(addkernels EXCLUDE_FROM_ALL ${ADD_KERNELS_SOURCE})
+add_executable(addkernels ${ADD_KERNELS_SOURCE})
 
 clang_tidy_check(addkernels)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index ebcdd9a..ccfd554 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -294,7 +294,7 @@ endfunction()
 separate_arguments(MIOPEN_TEST_FLAGS_ARGS UNIX_COMMAND ${MIOPEN_TEST_FLAGS})
 
 function(add_test_executable TEST_NAME)
-    add_executable (${TEST_NAME} EXCLUDE_FROM_ALL ${ARGN})
+    add_executable (${TEST_NAME} ${ARGN})
     clang_tidy_check(${TEST_NAME})
     target_link_libraries(${TEST_NAME} ${CMAKE_THREAD_LIBS_INIT})
     # Cmake does not add flags correctly for gcc