Skip to content

Commit b61e8ce

Browse files
authored
CMake: build binaries with LSQPACK_TESTS as well (#78)
Build the binaries with `-DLSQPACK_TESTS=ON`, to ensure that the test suite works even if they are not meant to be installed (via `-DLSQPACK_BIN=OFF`).
1 parent 7681b1d commit b61e8ce

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ if(LSQPACK_TESTS)
123123
add_subdirectory(test)
124124
endif()
125125

126-
if(LSQPACK_BIN)
126+
# The executables are used within the test suite as well.
127+
if(LSQPACK_BIN OR LSQPACK_TESTS)
127128
add_subdirectory(bin)
128129
endif()
129130

0 commit comments

Comments
 (0)