File tree Expand file tree Collapse file tree
src/Model/PhasorDynamics/SynchronousMachine/GenClassical
tests/UnitTests/PhasorDynamics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,12 @@ set(PACKAGE_VERSION_PATCH "0")
2121set (PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR} .${PACKAGE_VERSION_MINOR} .${PACKAGE_VERSION_PATCH} " )
2222
2323set (CMAKE_CXX_STANDARD 17)
24- set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wconversion -Wpedantic" )
24+
25+ if (MSVC )
26+ set (CMAKE_CXX_FLAGS "/Wall" )
27+ else ()
28+ set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wconversion -Wpedantic" )
29+ endif ()
2530
2631# Ipopt support is disabled by default
2732option (GRIDKIT_ENABLE_IPOPT "Enable Ipopt support" OFF )
Original file line number Diff line number Diff line change 66 *
77 *
88 */
9-
9+ # define _USE_MATH_DEFINES
1010#include " GenClassical.hpp"
1111
1212#include < cmath>
1313#include < iostream>
1414
1515#include < Model/PhasorDynamics/Bus/Bus.hpp>
1616
17- #define _USE_MATH_DEFINES
18-
1917namespace GridKit
2018{
2119 namespace PhasorDynamics
Original file line number Diff line number Diff line change 55 * @brief Tests for classical generator model.
66 *
77 */
8+ #define _USE_MATH_DEFINES /* need this since directly including GenClassical.cpp for MSVC compiler */
89#include < iomanip>
910#include < iostream>
1011#include < limits>
You can’t perform that action at this time.
0 commit comments