Update CMakeLists.txt
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sat, 5 Nov 2016 12:26:01 +0000 (13:26 +0100)
committerGitHub <noreply@github.com>
Sat, 5 Nov 2016 12:26:01 +0000 (13:26 +0100)
CMakeLists.txt

index 397d758..4c48476 100644 (file)
@@ -36,10 +36,6 @@ if(CMAKE_CONFIGURATION_TYPES) # multiconfig generator?
                Debug Debug
                Release Release
        )
-#      set(OpenBLAS_LIBNAME
-#              Debug "${OpenBLAS_LIBNAME}_d"
-#              Release "${OpenBLAS_LIBNAME}"
-#      )
 else()
        if( NOT CMAKE_BUILD_TYPE )
                if(BUILD_DEBUG)
@@ -50,10 +46,7 @@ else()
        endif()
 endif()
 
-if (CMAKE_BUILD_TYPE STREQUAL Debug)
-       set(OpenBLAS_LIBNAME "${OpenBLAS_LIBNAME}_d")
-endif()
-
+set_target_properties (${OpenBLAS_LIBNAME} PROPERTIES OUTPUT_NAME_DEBUG "${OpenBLAS_LIBNAME}_d")
 
 if(BUILD_WITHOUT_CBLAS)
 set(NO_CBLAS 1)