From f113ea49af0274806f037633d0a4f6a9bdbee333 Mon Sep 17 00:00:00 2001 From: Alexander Gabriel Date: Thu, 4 Oct 2018 02:24:40 +0200 Subject: [PATCH] Corrected Variable-Defintion --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3fc147..4717465 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ if(NOT CMAKE_CL_64) add_definitions(-D_USE_32BIT_TIME_T) endif(NOT CMAKE_CL_64) ENDIF(WIN32) +string(SUBSTRING $ENV{VSCMD_VER} 0 2 VSCMD_VER) include_directories (C:/php-sdk/phpmaster/vc${VSCMD_VER}/$ENV{VSCMD_ARG_TGT_ARCH}/php-src) include_directories (C:/php-sdk/phpmaster/vc${VSCMD_VER}/$ENV{VSCMD_ARG_TGT_ARCH}/php-src/main) @@ -19,6 +20,5 @@ add_library(example STATIC example.c) swig_add_library(php_example TYPE MODULE LANGUAGE php7 SOURCES example.i) target_compile_options(php_example PRIVATE /D_WIN32 /D_WINDOWS /DWINDOWS=1 /DZEND_WIN32=1 /DPHP_WIN32=1 /DWIN32 /DNDebug /DNDEBUG /DZEND_DEBUG=0 /DZTS=1) -string(SUBSTRING $ENV{VSCMD_VER} 0 2 VSCMD_VER) target_link_libraries(php_example "C:/php-sdk/phpmaster/vc${VSCMD_VER}/$ENV{VSCMD_ARG_TGT_ARCH}/php-src/x64/Release_TS/php7ts.lib") target_link_libraries(php_example example)