Fix utils include not being installed in header only
This commit is contained in:
parent
288af365db
commit
86fa1dc30b
@ -67,21 +67,23 @@ set(CUTLASS_ENABLE_HEADERS_ONLY OFF CACHE BOOL "Enable only the header library")
|
|||||||
|
|
||||||
if(CUTLASS_ENABLE_HEADERS_ONLY)
|
if(CUTLASS_ENABLE_HEADERS_ONLY)
|
||||||
set(CUTLASS_ENABLE_EXAMPLES_INIT OFF)
|
set(CUTLASS_ENABLE_EXAMPLES_INIT OFF)
|
||||||
set(CUTLASS_ENABLE_TOOLS_INIT OFF)
|
set(CUTLASS_ENABLE_TOOLS_INIT ON)
|
||||||
|
set(CUTLASS_ENABLE_LIBRARY_INIT OFF)
|
||||||
else()
|
else()
|
||||||
set(CUTLASS_ENABLE_EXAMPLES_INIT ON)
|
set(CUTLASS_ENABLE_EXAMPLES_INIT ON)
|
||||||
set(CUTLASS_ENABLE_TOOLS_INIT ON)
|
set(CUTLASS_ENABLE_TOOLS_INIT ON)
|
||||||
|
set(CUTLASS_ENABLE_LIBRARY_INIT ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CUTLASS_TEST_UNIT_ENABLE_WARNINGS OFF CACHE BOOL "Enable warnings on waived unit tests.")
|
set(CUTLASS_TEST_UNIT_ENABLE_WARNINGS OFF CACHE BOOL "Enable warnings on waived unit tests.")
|
||||||
|
|
||||||
set(CUTLASS_ENABLE_EXAMPLES ${CUTLASS_ENABLE_EXAMPLES_INIT} CACHE BOOL "Enable CUTLASS Examples")
|
set(CUTLASS_ENABLE_EXAMPLES ${CUTLASS_ENABLE_EXAMPLES_INIT} CACHE BOOL "Enable CUTLASS Examples")
|
||||||
set(CUTLASS_ENABLE_TOOLS ${CUTLASS_ENABLE_TOOLS_INIT} CACHE BOOL "Enable CUTLASS Tools")
|
set(CUTLASS_ENABLE_TOOLS ${CUTLASS_ENABLE_TOOLS_INIT} CACHE BOOL "Enable CUTLASS Tools")
|
||||||
set(CUTLASS_ENABLE_LIBRARY ${CUTLASS_ENABLE_TOOLS} CACHE BOOL "Enable CUTLASS Library")
|
set(CUTLASS_ENABLE_LIBRARY ${CUTLASS_ENABLE_LIBRARY_INIT} CACHE BOOL "Enable CUTLASS Library")
|
||||||
set(CUTLASS_ENABLE_PROFILER ${CUTLASS_ENABLE_TOOLS} CACHE BOOL "Enable CUTLASS Profiler")
|
set(CUTLASS_ENABLE_PROFILER ${CUTLASS_ENABLE_LIBRARY} CACHE BOOL "Enable CUTLASS Profiler")
|
||||||
|
|
||||||
if(${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
|
if(${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
|
||||||
set(CUTLASS_ENABLE_TESTS_INIT ${CUTLASS_ENABLE_TOOLS_INIT})
|
set(CUTLASS_ENABLE_TESTS_INIT ${CUTLASS_ENABLE_LIBRARY_INIT})
|
||||||
else()
|
else()
|
||||||
set(CUTLASS_ENABLE_TESTS_INIT OFF)
|
set(CUTLASS_ENABLE_TESTS_INIT OFF)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user