]> git.mxchange.org Git - flightgear.git/commitdiff
Make CrashRpt link optional
authorJames Turner <zakalawe@mac.com>
Sat, 18 Jan 2014 15:12:22 +0000 (15:12 +0000)
committerJames Turner <zakalawe@mac.com>
Sat, 18 Jan 2014 15:36:20 +0000 (15:36 +0000)
(The variable contains -NOTFOUND, not the empty string, so we can't
just link against it regardless)

src/Main/CMakeLists.txt

index eb072b47d804b9d12aa34a5ae92a90788e237a3b..5512db22d651f0c54628252ada21f6f93f972efa 100644 (file)
@@ -100,6 +100,10 @@ if(FG_HAVE_GPERFTOOLS)
     target_link_libraries(fgfs ${GooglePerfTools_LIBRARIES})
 endif()
 
+if (CRASHRPT_FOUND)
+       target_link_libraries(fgfs ${CRASHRPT_LIBRARY})
+endif()
+
 target_link_libraries(fgfs
        ${SQLITE3_LIBRARY}
        ${SIMGEAR_LIBRARIES}
@@ -109,7 +113,6 @@ target_link_libraries(fgfs
        ${JPEG_LIBRARY}
        ${HLA_LIBRARIES}
        ${EVENT_INPUT_LIBRARIES}
-       ${CRASHRPT_LIBRARY}
        ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
        ${SIMGEAR_SCENE_LIBRARY_DEPENDENCIES}
        ${PLATFORM_LIBS}