Skip to content

Commit

Permalink
Fix build failure under MinGW/MSYS
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 7, 2022
1 parent b8d2479 commit 0d7719a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -216,6 +216,6 @@ include_directories(${CMAKE_SOURCE_DIR}/asymptote/PRCTools)
add_executable(mshtopdf WIN32 ${MSHTOPDF_SRCS})
target_link_libraries(mshtopdf ${ADDITIONAL_LIBRARIES})

if(WIN32)
if(MSVC)
set_target_properties(mshtopdf PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
endif(WIN32)
endif(MSVC)
2 changes: 1 addition & 1 deletion mshtoprc/mshtoprc.cpp
Expand Up @@ -21,7 +21,7 @@
IDTFConverter.exe -en 1 -rzf 0 -pq 500 -input test.idtf -output test.u3d
*/

#ifdef WIN32
#ifdef _MSC_VER
# pragma warning(disable : 4244)
# define NOMINMAX
# include <Windows.h>
Expand Down

0 comments on commit 0d7719a

Please sign in to comment.