[Pcre-svn] [1286] code/trunk/CMakeLists.txt: Fixed a Windows…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1286] code/trunk/CMakeLists.txt: Fixed a Windows CMake testing issue, as advised by Daniel Richard G.
Revision: 1286
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1286
Author:   ph10
Date:     2020-12-03 15:41:54 +0000 (Thu, 03 Dec 2020)
Log Message:
-----------
Fixed a Windows CMake testing issue, as advised by Daniel Richard G.


Modified Paths:
--------------
    code/trunk/CMakeLists.txt


Modified: code/trunk/CMakeLists.txt
===================================================================
--- code/trunk/CMakeLists.txt    2020-11-22 15:16:05 UTC (rev 1285)
+++ code/trunk/CMakeLists.txt    2020-12-03 15:41:54 UTC (rev 1286)
@@ -93,6 +93,7 @@
 # 2020-04-25 Carlo added function check for mkostemp used in ProtExecAllocator
 # 2020-04-28 PH added function check for memfd_create based on Carlo's patch
 # 2020-05-25 PH added a check for Intel CET
+# 2020-12-03 PH altered the definition of pcre2test as suggested by Daniel


PROJECT(PCRE2 C)

@@ -851,7 +852,9 @@
\@echo off
setlocal
SET srcdir=\"${winsrc}\"
-SET pcre2test=\"${winexe}\"
+# The next line was replaced by the following one after a user comment.
+# SET pcre2test=\"${winexe}\"
+SET pcre2test=\"${winbin}\\pcre2test.exe\"
if not [%CMAKE_CONFIG_TYPE%]==[] SET pcre2test=\"${winbin}\\%CMAKE_CONFIG_TYPE%\\pcre2test.exe\"
call %srcdir%\\RunTest.Bat
if errorlevel 1 exit /b 1