Skip to content

Commit 889577d

Browse files
committed
Manage global options with 'add_compile_options' instead of direct manipulation
1 parent 1903bda commit 889577d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ endif()
8080

8181
if (UNIX)
8282
if (JINJA2CPP_PIC OR CONAN_CMAKE_POSITION_INDEPENDENT_CODE)
83-
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fPIC)
83+
add_compile_options(-fPIC)
8484
endif ()
8585

8686
if (DEFINED CONAN_SHARED_LINKER_FLAGS)

0 commit comments

Comments
 (0)