Skip to content

Commit

Permalink
Fix typo where fPIC option is not templated, so it is always enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Oct 6, 2021
1 parent 9a5da4b commit 4a29def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conan/tools/cmake/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def context(self):

class FPicBlock(Block):
template = textwrap.dedent("""
message(STATUS "Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
message(STATUS "Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE={{ fpic }} (options.fPIC)")
set(CMAKE_POSITION_INDEPENDENT_CODE {{ fpic }})
""")

def context(self):
Expand Down

0 comments on commit 4a29def

Please sign in to comment.