From 7a0ecea108c41c85af1ce8e3f4a98089bff9aa86 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Oct 2021 00:22:30 +0200 Subject: Increased control over win sdk paths --- NetEx/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'NetEx/CMakeLists.txt') diff --git a/NetEx/CMakeLists.txt b/NetEx/CMakeLists.txt index ccb0f01..c3c6652 100644 --- a/NetEx/CMakeLists.txt +++ b/NetEx/CMakeLists.txt @@ -17,11 +17,11 @@ add_library( NetServer.cpp NetSock.cpp ) -set(WINDOWSSDK_PATH "C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um") target_include_directories( NetEx PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} - PUBLIC ${WINDOWSSDK_PATH} # FIXME + PUBLIC ${WINDOWSSDK_PATH}/um # FIXME + PUBLIC ${WINDOWSSDK_PATH}/shared ) target_link_libraries( NetEx -- cgit v1.1 From 2af3e7b70b39b18c87883ccb24eb077a96338151 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Oct 2021 23:17:40 +0200 Subject: Separated out msvc cmake configuration --- NetEx/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'NetEx/CMakeLists.txt') diff --git a/NetEx/CMakeLists.txt b/NetEx/CMakeLists.txt index c3c6652..5bce174 100644 --- a/NetEx/CMakeLists.txt +++ b/NetEx/CMakeLists.txt @@ -20,10 +20,15 @@ add_library( target_include_directories( NetEx PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} - PUBLIC ${WINDOWSSDK_PATH}/um # FIXME - PUBLIC ${WINDOWSSDK_PATH}/shared ) target_link_libraries( NetEx PUBLIC FoundationEx ) +if(MSVC) + target_include_directories( + NetEx + PUBLIC ${WINDOWSSDK_PATH}/um + PUBLIC ${WINDOWSSDK_PATH}/shared + ) +endif() -- cgit v1.1