fPIC was causing issues. Fix by using the CMAKE variable instead. Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 lines
308 B
Diff
11 lines
308 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -156,7 +156,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
|
|
set(GCC_EXTRA_OPTIONS "")
|
|
#
|
|
if(YAML_BUILD_SHARED_LIBS)
|
|
- set(GCC_EXTRA_OPTIONS "${GCC_EXTRA_OPTIONS} -fPIC")
|
|
endif()
|
|
#
|
|
set(FLAG_TESTED "-Wextra -Wshadow -Weffc++ -pedantic -pedantic-errors")
|