Commit 7eb3d365 authored by Andreas Schuh's avatar Andreas Schuh

#105 Modify negative compilation tests to link against gflags_LIBRARIES

parent ccff5658
......@@ -10,7 +10,7 @@ string (TOUPPER ${TEST_NAME} TEST_NAME_UPPER)
project (gflags_nc_${TEST_NAME})
find_package (gflags REQUIRED)
link_libraries (gflags_nothreads)
include_directories ("${CMAKE_CURRENT_SOURCE_DIR}/..")
add_definitions (-DTEST_${TEST_NAME_UPPER})
add_executable (gflags_nc_${TEST_NAME} gflags_nc.cc)
target_link_libraries(gflags_nc_${TEST_NAME} ${gflags_LIBRARIES})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment