Skip to content

Commit

Permalink
Manage global options with 'add_compile_options' instead of direct ma…
Browse files Browse the repository at this point in the history
…nipulation
  • Loading branch information
flexferrum committed Jan 13, 2020
1 parent 1903bda commit 889577d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ endif()

if (UNIX)
if (JINJA2CPP_PIC OR CONAN_CMAKE_POSITION_INDEPENDENT_CODE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fPIC)
add_compile_options(-fPIC)
endif ()

if (DEFINED CONAN_SHARED_LINKER_FLAGS)
Expand Down

0 comments on commit 889577d

Please sign in to comment.