[clfft] 30/109: Everything compiles on MacOSX with the Unix makefile generator

Jérôme Kieffer kieffer-guest at moszumanska.debian.org
Wed May 20 07:29:23 UTC 2015


This is an automated email from the git hooks/post-receive script.

kieffer-guest pushed a commit to branch debian
in repository clfft.

commit 3a56ebff1dc2e5493724778f877e595c66ecbb33
Author: Kent Knox <kent.knox at amd>
Date:   Mon Oct 14 23:36:19 2013 -0500

    Everything compiles on MacOSX with the Unix makefile generator
---
 src/CMakeLists.txt        | 4 +---
 src/client/CMakeLists.txt | 6 ++++--
 src/tests/CMakeLists.txt  | 1 -
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 54ade57..a791b3f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -180,7 +180,7 @@ get_filename_component( C_COMPILER_NAME ${CMAKE_C_COMPILER} NAME_WE )
 # message( "CMAKE_C_COMPILER: " ${CMAKE_C_COMPILER} )
 
 # Set common compile and link options
-if( C_COMPILER_NAME STREQUAL "cl" )
+if( MSVC )
 	# Following options for nMake
 	message( STATUS "Detected MSVS Ver: " ${MSVC_VERSION} )
 
@@ -210,8 +210,6 @@ elseif( CMAKE_COMPILER_IS_GNUCXX )
         set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
         set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage")
     endif()
-# elseif( APPLE )
-#	set( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ ${CMAKE_CXX_FLAGS}" )
 endif( )
 
 # If UNICODE is defined for microsoft compilers, pass extra definitions
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt
index 99a89d3..fdf209f 100644
--- a/src/client/CMakeLists.txt
+++ b/src/client/CMakeLists.txt
@@ -33,10 +33,12 @@ set( Client.Files ${Client.Source} ${Client.Headers} )
 set( DL_LIB "" )
 if( WIN32 )
 	add_definitions( "/D_CONSOLE" )
-else()
+elseif( APPLE )
+	set( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ ${CMAKE_CXX_FLAGS}" )	
+else( )
 	# To use the dlopen() and dlclose() functions, we should link with libdl
 	set( DL_LIB "-ldl" )
-endif()
+endif( )
 
 # Include standard OpenCL headers
 include_directories( ${Boost_INCLUDE_DIRS} ${OPENCL_INCLUDE_DIRS} ../../../common ${PROJECT_BINARY_DIR}/include ../include )
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index cf6ab6e..2fdf49d 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -59,7 +59,6 @@ elseif( CMAKE_COMPILER_IS_GNUCXX )
 	set( LD_PTHREAD "-lpthread" )
 elseif( APPLE )
 	set( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ ${CMAKE_CXX_FLAGS}" )
-#	set( CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}" )
 	add_definitions( -DGTEST_USE_OWN_TR1_TUPLE )
 endif( )
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git



More information about the debian-science-commits mailing list