File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ project(unity
4444# Options to Build With Extras -------------------------------------------------
4545option (UNITY_EXTENSION_FIXTURE "Compiles Unity with the \" fixture\" extension." OFF )
4646option (UNITY_EXTENSION_MEMORY "Compiles Unity with the \" memory\" extension." OFF )
47+ option (UNITY_SUPPORT_INT64 "Enable 64bit integer support. OFF means autodetect." OFF )
4748
4849set (UNITY_EXTENSION_FIXTURE_ENABLED $<BOOL :${UNITY_EXTENSION_FIXTURE} >)
4950set (UNITY_EXTENSION_MEMORY_ENABLED $<OR :${UNITY_EXTENSION_FIXTURE_ENABLED} ,$<BOOL :${UNITY_EXTENSION_MEMORY} >>)
@@ -56,6 +57,10 @@ if(${UNITY_EXTENSION_MEMORY})
5657 message (STATUS "Unity: Building with the memory extension." )
5758endif ()
5859
60+ if (${UNITY_SUPPORT_INT64} )
61+ message (STATUS "Unity: Building with 64bit integer support." )
62+ endif ()
63+
5964# Main target ------------------------------------------------------------------
6065add_library (${PROJECT_NAME} STATIC )
6166add_library (${PROJECT_NAME} ::framework ALIAS ${PROJECT_NAME} )
@@ -89,6 +94,11 @@ set(${PROJECT_NAME}_PUBLIC_HEADERS
8994 $<$<BOOL :${UNITY_EXTENSION_MEMORY_ENABLED} >:${CMAKE_CURRENT_SOURCE_DIR} /extras /memory /src /unity_memory .h >
9095)
9196
97+ target_compile_definitions (${PROJECT_NAME}
98+ PUBLIC
99+ $<$<BOOL :${UNITY_SUPPORT_INT64} >:UNITY_SUPPORT_64 >
100+ )
101+
92102set_target_properties (${PROJECT_NAME}
93103 PROPERTIES
94104 C_STANDARD 11
You can’t perform that action at this time.
0 commit comments