@soroshsabz commented on this pull request.
In CMakeLists.txt:
> @@ -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
In CMakeLists.txt:
> @@ -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
In cmake/os-specific/windows.cmake:
> @@ -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, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.