@@ -18,10 +18,10 @@ set(CMAKE_CXX_EXTENSIONS OFF)
1818
1919if (CMAKE_SYSTEM_NAME STREQUAL Windows AND NOT MSVC )
2020# Build with other compilers is not configured, not guaranteed and not tested.
21- message ( FATAL_ERROR
22- "On Windows libsycl supports compiler which is some version of Microsoft "
23- " Visual C++ or another compiler simulating the Visual C++ cl "
24- " command-line syntax" )
21+ message (FATAL_ERROR
22+ "When compiling for Windows, libsycl requires a "
23+ " version of Microsoft Visual C++ or another compiler"
24+ " that uses the Visual C++ cl command-line syntax." )
2525endif ()
2626
2727#===============================================================================
@@ -71,8 +71,11 @@ set(LIBSYCL_MAJOR_VERSION 0)
7171set (LIBSYCL_MINOR_VERSION 1)
7272set (LIBSYCL_PATCH_VERSION 0)
7373set (LIBSYCL_VERSION_STRING "${LIBSYCL_MAJOR_VERSION} .${LIBSYCL_MINOR_VERSION} .${LIBSYCL_PATCH_VERSION} " )
74- set (LIBSYCL_ABI_NAMESPACE "V${LIBSYCL_MAJOR_VERSION} " CACHE STRING
75- "The inline ABI namespace used by libsycl. It defaults to Vn where `n` is the current ABI version." )
74+ set (LIBSYCL_ABI_NAMESPACE "__V${LIBSYCL_MAJOR_VERSION} " CACHE STRING
75+ "The inline ABI namespace used by libsycl. It defaults to __Vn where `n` is the current ABI version." )
76+ if (NOT LIBSYCL_ABI_NAMESPACE MATCHES "__V.*" )
77+ message (FATAL_ERROR "LIBSYCL_ABI_NAMESPACE must be a reserved identifier, got '${LIBSYCL_ABI_NAMESPACE} '." )
78+ endif ()
7679
7780#===============================================================================
7881# Setup build & install rules
0 commit comments