cmake: cuba needs a -fPIC flag explicitly, otherwise it doesn't link with all compilers.
This commit is contained in:
parent
4a881fad56
commit
f987776d41
@ -25,3 +25,7 @@ target_compile_definitions(
|
|||||||
common PRIVATE ${COMP_DEF}
|
common PRIVATE ${COMP_DEF}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#--- set compiler options -----------------------------------------------------
|
||||||
|
target_compile_options(
|
||||||
|
common PRIVATE -fPIC
|
||||||
|
)
|
||||||
|
@ -23,3 +23,7 @@ target_compile_definitions(
|
|||||||
cuhre PRIVATE ${COMP_DEF}
|
cuhre PRIVATE ${COMP_DEF}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#--- set compiler options -----------------------------------------------------
|
||||||
|
target_compile_options(
|
||||||
|
cuhre PRIVATE -fPIC
|
||||||
|
)
|
||||||
|
@ -23,4 +23,7 @@ target_compile_definitions(
|
|||||||
divonne PRIVATE ${COMP_DEF}
|
divonne PRIVATE ${COMP_DEF}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#--- set compiler options -----------------------------------------------------
|
||||||
|
target_compile_options(
|
||||||
|
divonne PRIVATE -fPIC
|
||||||
|
)
|
||||||
|
@ -23,3 +23,7 @@ target_compile_definitions(
|
|||||||
suave PRIVATE ${COMP_DEF}
|
suave PRIVATE ${COMP_DEF}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#--- set compiler options -----------------------------------------------------
|
||||||
|
target_compile_options(
|
||||||
|
suave PRIVATE -fPIC
|
||||||
|
)
|
||||||
|
@ -23,3 +23,7 @@ target_compile_definitions(
|
|||||||
vegas PRIVATE ${COMP_DEF}
|
vegas PRIVATE ${COMP_DEF}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#--- set compiler options -----------------------------------------------------
|
||||||
|
target_compile_options(
|
||||||
|
vegas PRIVATE -fPIC
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user