You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set (DEFAULT_CM_EMU_PREBUILT_PACKAGE"https://github.com/intel/cm-cpu-emulation/releases/download/v2022-02-11/intel-cmemu-1.0.20.u20.04-release.x86_64.tar.xz")
26
26
set (DEFAULT_CM_EMU_SOURCE_URL"https://github.com/intel/cm-cpu-emulation.git")
27
27
28
-
if (DEFINEDUSE_DEFAULT_CM_EMU_SOURCE)
29
-
if ((DEFINEDUSE_LOCAL_CM_EMU_SOURCE) OR (DEFINEDUSE_CM_EMU_PREBUILT_PACKAGE))
30
-
message(FATAL_ERROR"Configuration failure : Building CM_EMU library with local source or using pre-built one with online-building of CM_EMU")
28
+
if ((DEFINEDUSE_DEFAULT_CM_EMU_SOURCE) OR (DEFINEDUSE_LOCAL_CM_EMU_SOURCE))
29
+
if (DEFINEDUSE_CM_EMU_PREBUILT_PACKAGE)
30
+
message(FATAL_ERROR"Configuration failure : Pre-built package and On-line building of CM_EMU library package cannot be applied together")
31
31
endif()
32
-
if (MSVC)
33
-
message(FATAL_ERROR"Online-building of CM_EMU library is not supported under Windows environment")
34
-
else()
32
+
if ((DEFINEDUSE_DEFAULT_CM_EMU_SOURCE) AND (DEFINEDUSE_LOCAL_CM_EMU_SOURCE))
33
+
message(FATAL_ERROR"Configuration failure : Either default CM_EMU source or local source can be used for on-line CM building - not together")
34
+
endif()
35
+
if (WIN32)
36
+
message(FATAL_ERROR"Configuration failure : Online-building of CM_EMU library is not supported under Windows environment")
37
+
endif()
38
+
39
+
if (DEFINEDUSE_DEFAULT_CM_EMU_SOURCE)
40
+
message(STATUS"CM_EMU library package will be built online with source codes downloaded from ${DEFAULT_CM_EMU_SOURCE_URL}")
35
41
ExternalProject_Add(cm-emu
36
42
GIT_REPOSITORY${DEFAULT_CM_EMU_SOURCE_URL}
37
43
GIT_TAGf9d167edbcb995e713d5a8
@@ -42,14 +48,8 @@ if (DEFINED USE_DEFAULT_CM_EMU_SOURCE)
42
48
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
43
49
BUILD_BYPRODUCTS${LIBCM}${LIBIGFXCMRT_EMU}
44
50
)
45
-
endif()
46
-
elseif (DEFINEDUSE_LOCAL_CM_EMU_SOURCE)
47
-
if (DEFINEDUSE_CM_EMU_PREBUILT_PACKAGE)
48
-
message(FATAL_ERROR"Configuration failure : Using pre-built CM_EMU package with online-building of it")
49
-
endif()
50
-
if (MSVC)
51
-
message(FATAL_ERROR"Building of CM_EMU library is not supported under Windows environment")
52
-
else()
51
+
elseif (DEFINEDUSE_LOCAL_CM_EMU_SOURCE)
52
+
message(STATUS"CM_EMU library package will be built online with source codes from ${USE_LOCAL_CM_EMU_SOURCE}")
message(STATUS"Neither of USE_DEFAULT_CM_EMU_SOURCE, USE_LOCAL_CM_EMU_SOURCE, USE_CM_EMU_PREBUILT_PACKAGE is set, using prebuilt libCM from ${DEFAULT_CM_EMU_PREBUILT_PACKAGE}")
0 commit comments