Skip to content

Commit d88ff54

Browse files
author
Adam Rankin
committed
re #882 enabling build of stable branch with VS2015
1 parent 933546e commit d88ff54

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

PlusLib/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ IF(WIN32)
3333
# This method adds the necessary compiler flag
3434
SET (RUNTIME_MINIMUM_WINDOWS_VERSION "0x0602")
3535
add_definitions(-D_MSC_PLATFORM_TOOLSET_$(PlatformToolset))
36+
37+
# Correct the incoming windows sdk variables, as they have been manipulated to be passed to this project
38+
# as # separated strings
39+
STRING(REPLACE "#" ";" WINDOWS_SDK_INCLUDE_DIRS "${WINDOWS_SDK_INCLUDE_DIRS}")
40+
SET(WINDOWS_SDK_INCLUDE_DIRS ${WINDOWS_SDK_INCLUDE_DIRS} CACHE PATH "Path to the Windows SDK include dirs" FORCE)
41+
STRING(REPLACE "#" ";" WINDOWS_SDK_LIBRARY_DIRS "${WINDOWS_SDK_LIBRARY_DIRS}")
42+
SET(WINDOWS_SDK_LIBRARY_DIRS ${WINDOWS_SDK_LIBRARY_DIRS} CACHE PATH "Path to the Windows SDK library dirs" FORCE)
3643
ENDIF()
3744

3845
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)