Skip to content

Commit

Permalink
CMake: Fastlink is a linker flag
Browse files Browse the repository at this point in the history
Fixes invalid preprocessor option being generated.
  • Loading branch information
bsxf-47 authored and dscharrer committed Jul 6, 2020
1 parent 90f2617 commit 620f60a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/BuildType.cmake
Expand Up @@ -30,7 +30,8 @@ if(MSVC)
if(FASTLINK)

# Optimize for link speed in developer builds
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /DEBUG:FASTLINK")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /DEBUG:FASTLINK")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DEBUG:FASTLINK")

elseif(SET_OPTIMIZATION_FLAGS)

Expand Down

0 comments on commit 620f60a

Please sign in to comment.