Skip to content

Commit

Permalink
fix MinGW building (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeryStk authored Nov 16, 2023
1 parent 62a9ec8 commit a2ce504
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if(WIN32)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND ${CMAKE_BUILD_TYPE} STREQUAL "Release")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
endif()
endif(WIN32)

add_subdirectory("ResourceManager")
Expand Down
2 changes: 0 additions & 2 deletions Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ MESSAGE("_____________________ Copy Plotlylib to Tests step ____________________
if(WIN32)
file(COPY ${CMAKE_SOURCE_DIR}/plotly_maker/plotly-2.27.0.min.js DESTINATION
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/davis_htmls)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
file(COPY ${CMAKE_SOURCE_DIR}/plotly_maker/plotly-2.27.0.min.js DESTINATION
${CMAKE_CURRENT_BINARY_DIR}/davis_htmls)
endif()
endif(WIN32)

add_executable(${PROJECT_NAME}_plotly_tests PlotlyLibTest.cpp)
Expand Down
4 changes: 3 additions & 1 deletion array_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if(WIN32)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND ${CMAKE_BUILD_TYPE} STREQUAL "Release")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
endif()
endif(WIN32)
set(SOURCE_FILES
"../common_utils/common_utils.cpp"
Expand Down

0 comments on commit a2ce504

Please sign in to comment.