cmake: cuba needs a -fPIC flag explicitly, otherwise it doesn't link with all compilers.

This commit is contained in:
suter_a 2018-06-06 17:06:42 +02:00
parent 4a881fad56
commit f987776d41
5 changed files with 20 additions and 1 deletions

View File

@ -25,3 +25,7 @@ target_compile_definitions(
common PRIVATE ${COMP_DEF}
)
#--- set compiler options -----------------------------------------------------
target_compile_options(
common PRIVATE -fPIC
)

View File

@ -23,3 +23,7 @@ target_compile_definitions(
cuhre PRIVATE ${COMP_DEF}
)
#--- set compiler options -----------------------------------------------------
target_compile_options(
cuhre PRIVATE -fPIC
)

View File

@ -23,4 +23,7 @@ target_compile_definitions(
divonne PRIVATE ${COMP_DEF}
)
#--- set compiler options -----------------------------------------------------
target_compile_options(
divonne PRIVATE -fPIC
)

View File

@ -23,3 +23,7 @@ target_compile_definitions(
suave PRIVATE ${COMP_DEF}
)
#--- set compiler options -----------------------------------------------------
target_compile_options(
suave PRIVATE -fPIC
)

View File

@ -23,3 +23,7 @@ target_compile_definitions(
vegas PRIVATE ${COMP_DEF}
)
#--- set compiler options -----------------------------------------------------
target_compile_options(
vegas PRIVATE -fPIC
)