dear god i hate msvc now
This commit is contained in:
		
							parent
							
								
									de9b984973
								
							
						
					
					
						commit
						f08bbe1b1d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -8,7 +8,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "" SUFFIX ".node")
 | 
				
			||||||
target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB})
 | 
					target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB})
 | 
				
			||||||
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
 | 
					target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
 | 
				
			||||||
if(MSVC)
 | 
					if(MSVC)
 | 
				
			||||||
set(CMAKE_CXX_FLAGS "/Wall /Wno-cast-function-type /fexceptions /fstack-clash-protection /pedantic")
 | 
					set(CMAKE_CXX_FLAGS "/Wall /EHsc /GS") # idk anything about msvc
 | 
				
			||||||
set(CMAKE_CXX_FLAGS_DEBUG "/Zi")
 | 
					set(CMAKE_CXX_FLAGS_DEBUG "/Zi")
 | 
				
			||||||
else()
 | 
					else()
 | 
				
			||||||
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror=format-security -Wno-cast-function-type -fexceptions -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -pedantic -D_GLIBCXX_USE_CXX11_ABI=1")
 | 
					set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror=format-security -Wno-cast-function-type -fexceptions -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -pedantic -D_GLIBCXX_USE_CXX11_ABI=1")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue