File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,19 @@ include(GNUInstallDirs)
13
13
set (THREADS_PREFER_PTHREAD_FLAG ON )
14
14
find_package (Threads REQUIRED )
15
15
16
+ # Check for pcm*.x artifacts generated by an old build scenario using Makefiles
17
+ file (GLOB_RECURSE PCM_X_ARTIFACTS ${CMAKE_CURRENT_SOURCE_DIR} /*.x )
18
+ foreach (file ${PCM_X_ARTIFACTS} )
19
+ file (REMOVE ${file} )
20
+ message (STATUS "Removing old artifact from current source directory : ${file} " )
21
+ endforeach ()
22
+ if (PCM_X_ARTIFACTS )
23
+ message (WARNING
24
+ " Old pcm utilities (.x) were indicated in build folder.\n "
25
+ " Old binaries are expected to be installed in system.\n "
26
+ " Make sure to install the new binaries(run 'cmake --install .') after building.)" )
27
+ endif ()
28
+
16
29
message (STATUS "System: ${CMAKE_SYSTEM} " )
17
30
if (UNIX AND NOT APPLE )
18
31
if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" )
You can’t perform that action at this time.
0 commit comments