From 4f650b6bbaddc18beff52af7b2564d7d5bb73dfe Mon Sep 17 00:00:00 2001 From: Tom Hulton-Harrop Date: Sun, 10 May 2020 01:24:22 +0100 Subject: [PATCH] update bx.cmake to include platform specific headers in target install include paths (#76) --- cmake/bx.cmake | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/cmake/bx.cmake b/cmake/bx.cmake index d7b7e1a..80e50ce 100644 --- a/cmake/bx.cmake +++ b/cmake/bx.cmake @@ -35,20 +35,31 @@ if( WIN32 ) target_link_libraries( bx PUBLIC psapi ) endif() +include(GNUInstallDirs) + # Add include directory of bx target_include_directories( bx PUBLIC $ $ - $) + $ ) # Build system specific configurations if( MSVC ) - target_include_directories( bx PUBLIC $ ) + target_include_directories( bx + PUBLIC + $ + $ ) elseif( MINGW ) - target_include_directories( bx PUBLIC $ ) + target_include_directories( bx + PUBLIC + $ + $ ) elseif( APPLE ) - target_include_directories( bx PUBLIC $ ) + target_include_directories( bx + PUBLIC + $ + $ ) endif() # All configurations