Skip to content

Commit 2fba53e

Browse files
authored
cmake: Fix cmake error for 4.x (#333)
1 parent c984c27 commit 2fba53e

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
@@ -566,7 +566,7 @@ install (TARGETS "${PROJECT_NAME}")
566566
# Would rather string replace variables here instead of editing .pc.in, because editing .pc.in
567567
# might build break autotools build.
568568
file(READ "${PROJECT_SRC}/openlibm.pc.in" PC_FILE)
569-
string(REPLACE "\${version}" ${CMAKE_PROJECT_VERSION} PC_FILE ${PC_FILE})
569+
string(REPLACE "\${version}" "${CMAKE_PROJECT_VERSION}" PC_FILE ${PC_FILE})
570570
string(PREPEND PC_FILE "prefix=${CMAKE_INSTALL_PREFIX}
571571
includedir=\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}
572572
libdir=\${prefix}/${CMAKE_INSTALL_LIBDIR}\n

0 commit comments

Comments
 (0)