Skip to content

Commit c262e31

Browse files
nertpinxvitalybuka
authored andcommitted
Fix default PKG_CONFIG_PATH in CMakeLists.txt
Since `option()` was used it defaulted to OFF instead of the supplied string as `option()` is used for booleans only, resulting in `libprotobuf-mutator.pc` file being installed in `${prefix}/OFF/libprotobuf-mutator.pc` which is clearly undesirable. Change it to `set()` so the default value is properly stored and used.
1 parent 4f2ff41 commit c262e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ option(LIB_PROTO_MUTATOR_TESTING "Enable test building" ON)
2222
option(LIB_PROTO_MUTATOR_DOWNLOAD_PROTOBUF
2323
"Automatically download working protobuf" OFF)
2424
option(LIB_PROTO_MUTATOR_WITH_ASAN "Enable address sanitizer" OFF)
25-
option(PKG_CONFIG_PATH "Directory to install pkgconfig file" "share/pkgconfig")
25+
set(PKG_CONFIG_PATH "share/pkgconfig" CACHE STRING "Directory to install pkgconfig file")
2626
set(LIB_PROTO_MUTATOR_FUZZER_LIBRARIES "" CACHE STRING "Fuzzing engine libs")
2727

2828
# External dependencies

0 commit comments

Comments
 (0)