Skip to content

Commit

Permalink
Fix Visual Studio Debug builds (pantor#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzeslaf authored and pantor committed Dec 3, 2019
1 parent d62453d commit c36cbac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ set(INJA_INSTALL_INCLUDE_DIR "include")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake)

if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
add_compile_options(-Wall)
endif()

if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
add_compile_options(/W4 /permissive- /utf-8 /Zc:__cplusplus)
endif()


Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ platform:
- x64

configuration:
# - Debug
- Debug
- Release

environment:
Expand All @@ -34,7 +34,7 @@ init:
before_build:
- mkdir -p build
- cd build
- cmake .. -A %PLATFORM% -T %TOOLCHAIN% -DCMAKE_CXX_STANDARD=%STD% -DCMAKE_CXX_FLAGS="/permissive- /utf-8 /Zc:__cplusplus"
- cmake .. -A %PLATFORM% -T %TOOLCHAIN% -DCMAKE_CXX_STANDARD=%STD%

build_script:
- cmake --build . --config %CONFIGURATION% -- -verbosity:n
Expand Down

0 comments on commit c36cbac

Please sign in to comment.