diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f1aeb8..68f4510 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,7 +115,8 @@ function( vulkan_hpp__setup_library ) vulkan_hpp__setup_project( NAME ${TARGET_NAME} ) if( "${TARGET_SOURCES}" STREQUAL "" ) - add_library( ${TARGET_NAME} INTERFACE ${TARGET_HEADERS} ) + add_library( ${TARGET_NAME} INTERFACE ) + target_sources( ${TARGET_NAME} PUBLIC ${TARGET_HEADERS} ) else() if( ${TARGET_SHARED} ) add_library( ${TARGET_NAME} SHARED ${TARGET_SOURCES} ${TARGET_HEADERS} )