Skip to content

Commit

Permalink
fixup! build: Generate share/toolchain.cmake in depends
Browse files Browse the repository at this point in the history
BUGFIX: Include missed CMAKE_<...>_FLAGS_INIT variables.
  • Loading branch information
hebasto committed Nov 11, 2023
1 parent 7115bdd commit e2361c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions depends/toolchain.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ if(NOT CMAKE_CXX_COMPILER)
list(POP_FRONT mandatory_cxx_compiler_flags CMAKE_CXX_COMPILER)
list(JOIN mandatory_cxx_compiler_flags " " mandatory_cxx_compiler_flags)
string(PREPEND CMAKE_CXX_FLAGS_INIT "${mandatory_cxx_compiler_flags} ")
string(PREPEND CMAKE_OBJCXX_FLAGS_INIT "${mandatory_cxx_compiler_flags} ")
string(PREPEND CMAKE_EXE_LINKER_FLAGS_INIT "${mandatory_cxx_compiler_flags} ")
string(PREPEND CMAKE_SHARED_LINKER_FLAGS_INIT "${mandatory_cxx_compiler_flags} ")
unset(mandatory_cxx_compiler_flags)
endif()
set(DEPENDS_CXX_COMPILER_FLAGS @CXXFLAGS@)
Expand Down

0 comments on commit e2361c7

Please sign in to comment.