@soroshsabz commented on this pull request.


> @@ -2,6 +2,13 @@ cmake_minimum_required(VERSION 3.10)
 
 # Use cmake -DCMAKE_SYSTEM_NAME .. for cross-compiling (inside build directory)
 
+# cmake_policy must be before project for working with toolchain together
+if(WIN32)
+  cmake_policy(SET CMP0074 NEW)
+  cmake_policy(SET CMP0156 OLD)

Add comments

https://cmake.org/cmake/help/latest/policy/CMP0156.html

> @@ -2,6 +2,13 @@ cmake_minimum_required(VERSION 3.10)
 
 # Use cmake -DCMAKE_SYSTEM_NAME .. for cross-compiling (inside build directory)
 
+# cmake_policy must be before project for working with toolchain together
+if(WIN32)
+  cmake_policy(SET CMP0074 NEW)
+  cmake_policy(SET CMP0156 OLD)
+  cmake_policy(SET CMP0082 OLD)

Add comments https://cmake.org/cmake/help/latest/policy/CMP0082.html

> @@ -0,0 +1,7 @@
+# Windows specific flags
+message(STATUS "Configuring for Windows")
+
+set(FLEX_ROOT "C:/GnuWin32")
+set(BISON_ROOT "C:/GnuWin32")
+set(ENV PATH "C:/GnuWin32/bin;$ENV{PATH}" CACHE INTERNAL "")
+set(ENV PATH "C:/GnuWin32/bin;$ENV{PATH}")

Check persist env changing

https://stackoverflow.com/a/41139360/1539100

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4113#pullrequestreview-2556038781
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/4113/review/2556038...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to