Skip to content

Commit 9ebb730

Browse files
committed
cmake: explicitly link test with gtest
With external (distro) gtest, this avoids an error along the lines of "DSO missing from command line". Signed-off-by: Xiretza <[email protected]>
1 parent 73d1d20 commit 9ebb730

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ add_executable(parse_fasm_tests
108108
${ANTLR_FasmParser_CXX_OUTPUTS})
109109
target_link_libraries(parse_fasm_tests ${ANTLR4_RUNTIME})
110110
target_link_libraries(parse_fasm_tests gtest_main)
111+
target_link_libraries(parse_fasm_tests gtest)
111112
#target_compile_options(parse_fasm_tests PRIVATE -Wno-attributes) # Disable warning from antlr4-runtime
112113

113114
# Standalone executable

0 commit comments

Comments
 (0)