Skip to content

Commit

Permalink
Use 'CMAKE_CXX_FLAGS_INIT' instead of 'add_compile_options' for C++ c…
Browse files Browse the repository at this point in the history
…ompiler options in the toolchain
  • Loading branch information
MarkSchofield committed Jul 13, 2023
1 parent abcef3e commit 6ae1bfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Windows.MSVC.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ link_directories("${VS_TOOLSET_PATH}/lib/x86/store/references")

# Module support
if(VS_EXPERIMENTAL_MODULE)
add_compile_options(/experimental:module)
add_compile_options(/stdIfcDir "${VS_TOOLSET_PATH}/ifc/${CMAKE_VS_PLATFORM_TOOLSET_ARCHITECTURE}")
set(CMAKE_CXX_FLAGS_INIT "${CMAKE_CXX_FLAGS_INIT} /experimental:module")
set(CMAKE_CXX_FLAGS_INIT "${CMAKE_CXX_FLAGS_INIT} /stdIfcDir \"${VS_TOOLSET_PATH}/ifc/${CMAKE_VS_PLATFORM_TOOLSET_ARCHITECTURE}\"")
endif()

# Windows Kits
Expand Down

0 comments on commit 6ae1bfa

Please sign in to comment.