Fixed Windows issue
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b6b1496e82
commit
fb142c7f25
|
@ -24,7 +24,7 @@ steps:
|
|||
- update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
|
||||
- update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
|
||||
- update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
|
||||
- cmake -DCMAKE_BUILD_TYPE=Release . -B build-release-windows -D CMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc -D CMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -D WINDOWS=ON
|
||||
- cmake --build build-release-windows --target all -- -j 4 -D WINDOWS=on
|
||||
- cmake -DCMAKE_BUILD_TYPE=Release . -B build-release-windows -D CMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc -D CMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DWINDOWS=ON
|
||||
- cmake --build build-release-windows --target all -- -j 4
|
||||
- export WINEARCH=win64
|
||||
- wine build-release-windows/PorygonLangTests.exe -s
|
||||
|
|
|
@ -6,6 +6,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||
|
||||
include_directories(extern)
|
||||
|
||||
if (WINDOWS)
|
||||
ADD_DEFINITIONS(-D WINDOWS=1)
|
||||
endif(WINDOWS)
|
||||
|
||||
file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp")
|
||||
file(GLOB_RECURSE TEST_FILES "tests/*.cpp" "tests/*.hpp")
|
||||
|
||||
|
|
Loading…
Reference in New Issue