From fd514ccfc9fd14cc06b7204dca53c55ada9b8497 Mon Sep 17 00:00:00 2001 From: Sam Gateau Date: Mon, 27 Oct 2014 14:47:31 -0700 Subject: [PATCH] Fixed the cmake so if NSIGHT is not available then no problem --- interface/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 194558e580..d9cf40baa3 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -230,13 +230,16 @@ else (APPLE) # we're using static GLEW, so define GLEW_STATIC add_definitions(-DGLEW_STATIC) + target_link_libraries(${TARGET_NAME} "${GLEW_LIBRARIES}" "${NSIGHT_LIBRARIES}" wsock32.lib opengl32.lib) + + # try to find the Nsight package and add it to the build if we find it find_package(NSIGHT) if (NSIGHT_FOUND) include_directories(${NSIGHT_INCLUDE_DIRS}) add_definitions(-DNSIGHT_FOUND) + target_link_libraries(${TARGET_NAME} "${NSIGHT_LIBRARIES}") endif () - target_link_libraries(${TARGET_NAME} "${GLEW_LIBRARIES}" "${NSIGHT_LIBRARIES}" wsock32.lib opengl32.lib) endif() endif (APPLE)