Skip to content

Commit 1f50231

Browse files
jktjktmichalvasko
authored andcommitted
tests: do not make assumptions about build directory layout
The tests would only work if the build directory was named `build/`, and if it was a subdirectory of the source tree. Bug: #389 Fixes: 41a11e4 pam UPDATE auth using Linux PAM
1 parent e56611b commit 1f50231

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ if(LIBPAM_HAVE_CONFDIR)
9393
#generate PAM configuration file
9494
file(WRITE ${CMAKE_SOURCE_DIR}/tests/pam/netconf.conf
9595
"#%PAM-1.4\n"
96-
"auth required ${CMAKE_SOURCE_DIR}/build/tests/pam_netconf.so\n"
97-
"account required ${CMAKE_SOURCE_DIR}/build/tests/pam_netconf.so\n"
98-
"password required ${CMAKE_SOURCE_DIR}/build/tests/pam_netconf.so\n"
96+
"auth required ${CMAKE_CURRENT_BINARY_DIR}/pam_netconf.so\n"
97+
"account required ${CMAKE_CURRENT_BINARY_DIR}/pam_netconf.so\n"
98+
"password required ${CMAKE_CURRENT_BINARY_DIR}/pam_netconf.so\n"
9999
)
100100

101101
endif()

0 commit comments

Comments
 (0)