Skip to content

Commit 1721990

Browse files
author
Teseo Schneider
committed
added ltcg flag
1 parent 2ce9fbc commit 1721990

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ include(CXXFeatures)
3030
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
3131

3232
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
33+
set_target_properties(pyigl PROPERTIES LINK_FLAGS "/LTCG")
34+
3335
foreach(config ${CMAKE_CONFIGURATION_TYPES})
3436
string(TOUPPER ${config} config)
3537
string(REPLACE /MD /MT CMAKE_C_FLAGS_${config} "${CMAKE_C_FLAGS_${config}}")

0 commit comments

Comments
 (0)