Skip to content

Commit de149a4

Browse files
committed
Fixed KOBO_EXTRA_LIBRARIES default value
The KOBO_EXTRA_LIBRARIES CMake variable used to be defined via option(), which meant it was really a boolean, and any non-true default would automatically be converted to "OFF". Now using set() with a help string instead, and a proper "" default. Closes #454.
1 parent b9364c5 commit de149a4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CMakeLists.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ option(DEMO_BUILD "Build Kobo Redux demo." OFF)
1111
option(WIN32_ZIP_BUILD "Build flat Win32 ZIP archive." OFF)
1212
option(WORKDIR "Top level build/staging directory."
1313
"${KOBOREDUX_SOURCE_DIR}/build")
14-
option(KOBO_EXTRA_LIBRARIES "Extra libraries to link with." "")
14+
set(KOBO_EXTRA_LIBRARIES "" CACHE STRING "Extra libraries to link with.")
1515

1616
message(".-----------------------------------------")
17-
message("| DEMO_BUILD: ${DEMO_BUILD}")
18-
message("| WIN32_ZIP_BUILD: ${WIN32_ZIP_BUILD}")
19-
message("| WORKDIR: ${WORKDIR}")
17+
message("| DEMO_BUILD: ${DEMO_BUILD}")
18+
message("| WIN32_ZIP_BUILD: ${WIN32_ZIP_BUILD}")
19+
message("| WORKDIR: ${WORKDIR}")
20+
message("| KOBO_EXTRA_LIBRARIES: ${KOBO_EXTRA_LIBRARIES}")
2021
message("'-----------------------------------------")
2122

2223
if(DEMO_BUILD)

0 commit comments

Comments
 (0)