adding -fPIC compiler flag per warning suggestion (#335)
This commit is contained in:
parent
5d63abd06e
commit
051c6df956
@ -5,7 +5,7 @@ if(NOT CMAKE_CXX_STANDARD)
|
|||||||
set(CMAKE_CXX_STANDARD 14)
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
endif()
|
endif()
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
add_compile_options(-Wall -Wextra -Wpedantic)
|
add_compile_options(-Wall -Wextra -Wpedantic -fPIC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
## Find system dependencies
|
## Find system dependencies
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user