Skip to content

Commit a1ebcbf

Browse files
committed
build: MSVC: no link-time code generation for debug build configuration to speedup building
1 parent 6aa38eb commit a1ebcbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ if(ONIGMO_SHARED_LIB)
270270
PROPERTIES PDB_NAME onigmo.dll)
271271
target_link_options(onigmo-shared
272272
PUBLIC /pdb:$<TARGET_PDB_FILE:onigmo-shared>
273-
PRIVATE /LTCG)
273+
PRIVATE $<$<NOT:$<CONFIG:Debug>>:/LTCG>)
274274
endif()
275275

276276
# Library install routines

0 commit comments

Comments
 (0)