summaryrefslogtreecommitdiff
path: root/win/CMakeLists.txt
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-02-17 17:12:26 +0000
committerPeter Powell <petpow@saberuk.com>2018-02-17 17:12:26 +0000
commitd2efdbf6bb91229d043303b1694fefae79ea6fe7 (patch)
treebc256da2d24eaf978af4a04cd45f79045c0b745d /win/CMakeLists.txt
parent36e6dc7bc8c21db2f8fa63c96b3e3aa23886e056 (diff)
Fix building on Windows (mostly).
Diffstat (limited to 'win/CMakeLists.txt')
-rw-r--r--win/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/win/CMakeLists.txt b/win/CMakeLists.txt
index e8ff42d1e..96e558c8b 100644
--- a/win/CMakeLists.txt
+++ b/win/CMakeLists.txt
@@ -23,6 +23,7 @@ file(STRINGS "${INSPIRCD_BASE}/src/version.sh" VERSIONSH)
string(REGEX REPLACE ".*InspIRCd-([0-9]*).*" "\\1" VERSION_MAJOR "${VERSIONSH}")
string(REGEX REPLACE ".*InspIRCd-[0-9]*\\.([0-9]*).*" "\\1" VERSION_MINOR "${VERSIONSH}")
string(REGEX REPLACE ".*InspIRCd-[0-9]*\\.[0-9]*\\.([0-9]*).*" "\\1" VERSION_PATCH "${VERSIONSH}")
+string(REGEX REPLACE ".*InspIRCd-([^\"]+).*" "\\1" VERSION_FULL "${VERSIONSH}")
if(MSVC)
# Without /SAFESEH:NO old libraries compiled with VS 2010 or older won't link correctly to VS2012 (eg, extra module libs)