File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,9 +45,8 @@ project(unity
4545option (UNITY_EXTENSION_FIXTURE "Compiles Unity with the \" fixture\" extension." OFF )
4646option (UNITY_EXTENSION_MEMORY "Compiles Unity with the \" memory\" extension." OFF )
4747
48- # Fixture is a dependant of memory
49- set (UNITY_EXTENSION_FIXTURE_ENABLED ${UNITY_EXTENSION_FIXTURE} )
50- set (UNITY_EXTENSION_MEMORY_ENABLED $<OR :$<BOOL :${UNITY_EXTENSION_MEMORY} >,$<BOOL :${UNITY_EXTENSION_FIXTURE} >>)
48+ set (UNITY_EXTENSION_FIXTURE_ENABLED $<BOOL :${UNITY_EXTENSION_FIXTURE} >)
49+ set (UNITY_EXTENSION_MEMORY_ENABLED $<OR :${UNITY_EXTENSION_FIXTURE_ENABLED} ,$<BOOL :${UNITY_EXTENSION_MEMORY} >>)
5150
5251if (${UNITY_EXTENSION_FIXTURE} )
5352 message (STATUS "Unity: Bulding with the fixture extension." )
@@ -84,10 +83,9 @@ target_include_directories(${PROJECT_NAME}
8483set (${PROJECT_NAME} _PUBLIC_HEADERS
8584 src/unity.h
8685 src/unity_internals.h
87- $<$<BOOL :${UNITY_EXTENSION_FIXTURE_ENABLED} >:extras /fixture /src /unity_fixture .h
88- extras /fixture /src /unity_fixture_internals .h >
89- $<$<BOOL :${UNITY_EXTENSION_MEMORY_ENABLED} >:extras /memory /src /unity_memory .h
90- extras /memory /src /unity_memory_internals .h >
86+ $<$<BOOL :${UNITY_EXTENSION_FIXTURE_ENABLED} >:${CMAKE_CURRENT_SOURCE_DIR} /extras /fixture /src /unity_fixture .h >
87+ $<$<BOOL :${UNITY_EXTENSION_FIXTURE_ENABLED} >:${CMAKE_CURRENT_SOURCE_DIR} /extras /fixture /src /unity_fixture_internals .h >
88+ $<$<BOOL :${UNITY_EXTENSION_MEMORY_ENABLED} >:${CMAKE_CURRENT_SOURCE_DIR} /extras /memory /src /unity_memory .h >
9189)
9290
9391set_target_properties (${PROJECT_NAME}
You can’t perform that action at this time.
0 commit comments