diff --git a/CMakeLists.txt b/CMakeLists.txt index 55d795c..3a16cdc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,9 +45,8 @@ project(unity option(UNITY_EXTENSION_FIXTURE "Compiles Unity with the \"fixture\" extension." OFF) option(UNITY_EXTENSION_MEMORY "Compiles Unity with the \"memory\" extension." OFF) -# Fixture is a dependant of memory -set(UNITY_EXTENSION_FIXTURE_ENABLED ${UNITY_EXTENSION_FIXTURE}) -set(UNITY_EXTENSION_MEMORY_ENABLED $,$>) +set(UNITY_EXTENSION_FIXTURE_ENABLED $) +set(UNITY_EXTENSION_MEMORY_ENABLED $>) if(${UNITY_EXTENSION_FIXTURE}) message(STATUS "Unity: Bulding with the fixture extension.") @@ -84,10 +83,9 @@ target_include_directories(${PROJECT_NAME} set(${PROJECT_NAME}_PUBLIC_HEADERS src/unity.h src/unity_internals.h - $<$:extras/fixture/src/unity_fixture.h - extras/fixture/src/unity_fixture_internals.h> - $<$:extras/memory/src/unity_memory.h - extras/memory/src/unity_memory_internals.h> + $<$:${CMAKE_CURRENT_SOURCE_DIR}/extras/fixture/src/unity_fixture.h> + $<$:${CMAKE_CURRENT_SOURCE_DIR}/extras/fixture/src/unity_fixture_internals.h> + $<$:${CMAKE_CURRENT_SOURCE_DIR}/extras/memory/src/unity_memory.h> ) set_target_properties(${PROJECT_NAME}