Skip to content

Commit d90a191

Browse files
committed
Fix for the INSTALL_INTERFACE
Signed-off-by: Matthew A Johnson <matjoh@microsoft.com>
1 parent 5b87eb3 commit d90a191

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ endif()
292292
# Add header paths.
293293
target_include_directories(snmalloc
294294
INTERFACE
295-
$<INSTALL_INTERFACE:include/snmalloc>
295+
$<INSTALL_INTERFACE:include>
296296
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>)
297297

298298
if(NOT MSVC)

test/vcpkg-consumer/test_header_only.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
/**
22
* Minimal vcpkg integration test for the snmalloc header-only target.
33
* Verifies that find_package(snmalloc) + snmalloc::snmalloc works.
4-
*
5-
* The installed INSTALL_INTERFACE include path is "include/snmalloc",
6-
* so we include snmalloc.h directly (not snmalloc/snmalloc.h).
74
*/
8-
#include <snmalloc.h>
5+
#include <snmalloc/snmalloc.h>
96

107
int main()
118
{

0 commit comments

Comments
 (0)