Add TINYSPLINE_PLATFORM_ARCH variable to script.
@@ -134,6 +134,9 @@ set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
# Name of the platform in lowercase. Supported values are: 'linux', 'macosx',
# 'windows', and 'generic'.
#
+# TINYSPLINE_PLATFORM_ARCH
+# Architecture of target system, e. g. 'x86_64'.
+#
# TINYSPLINE_PLATFORM
# Platform specific identifier, e. g. 'linux-x86_64'.
###############################################################################
@@ -149,21 +152,24 @@ set(TINYSPLINE_RUBY_CMAKE_TARGET "tinysplineruby" CACHE INTERNAL "")
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(TINYSPLINE_PLATFORM_NAME "linux" CACHE INTERNAL "")
- set(TINYSPLINE_PLATFORM "linux-${CMAKE_SYSTEM_PROCESSOR}" CACHE INTERNAL "")
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
set(TINYSPLINE_PLATFORM_NAME "macosx" CACHE INTERNAL "")
- set(TINYSPLINE_PLATFORM "macosx-${CMAKE_SYSTEM_PROCESSOR}" CACHE INTERNAL "")
-elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND CMAKE_SIZEOF_VOID_P EQUAL 8)
- set(TINYSPLINE_PLATFORM_NAME "windows" CACHE INTERNAL "")
- set(TINYSPLINE_PLATFORM "windows-x86_64" CACHE INTERNAL "")
-elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
+elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
set(TINYSPLINE_PLATFORM_NAME "windows" CACHE INTERNAL "")
- set(TINYSPLINE_PLATFORM "windows-x86" CACHE INTERNAL "")
else()
set(TINYSPLINE_PLATFORM_NAME "generic" CACHE INTERNAL "")
- set(TINYSPLINE_PLATFORM "generic" CACHE INTERNAL "")
endif()
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(TINYSPLINE_PLATFORM_ARCH "x86_64" CACHE INTERNAL "")
+else()
+ set(TINYSPLINE_PLATFORM_ARCH "x86" CACHE INTERNAL "")
+endif()
+
+set(TINYSPLINE_PLATFORM
+ "${TINYSPLINE_PLATFORM_NAME}-${TINYSPLINE_PLATFORM_ARCH}"
+ CACHE INTERNAL "")
+
###############################################################################
@@ -989,6 +995,9 @@ string(STRIP "${CMAKE_CXX_FLAGS} ${TINYSPLINE_BINDING_CXX_FLAGS}" TINYSPLINE_SUM
message(STATUS
"
******************* TinySpline Configuration Summary *******************
+Platform:
+ Id: ${TINYSPLINE_PLATFORM}
+
Interface Configuration:
With single precision (default: OFF): ${TINYSPLINE_FLOAT_PRECISION}
