From e84c93dfce2016c4105f1d800da997bc791ba5c1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 11 Jan 2018 10:10:43 +0000 Subject: [PATCH] Fixed Linux NVTT build issue by restricting the addition of the new libs to just Windows --- CMakeModules/FindNVTT.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeModules/FindNVTT.cmake b/CMakeModules/FindNVTT.cmake index 2e24a9fea..d0e7414ac 100644 --- a/CMakeModules/FindNVTT.cmake +++ b/CMakeModules/FindNVTT.cmake @@ -178,7 +178,12 @@ FIND_LIBRARY(NVBC7_LIBRARY_DEBUG PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static ) -SET(LIBS_TO_SETUP "NVTT" "NVCORE" "NVMATH" "NVIMAGE" "NVTHREAD" "NVBC7" "NVBC6H" "NVSQUISH") +IF (WIN32) + SET(LIBS_TO_SETUP "NVTT" "NVCORE" "NVMATH" "NVIMAGE" "NVTHREAD" "NVBC7" "NVBC6H" "NVSQUISH") +ELSE() + SET(LIBS_TO_SETUP "NVTT" "NVCORE" "NVMATH" "NVIMAGE") +ENDIF() + FOREACH(LIB ${LIBS_TO_SETUP}) IF(${LIB}_LIBRARY_DEBUG)