From 51a29e960735a50b4bb4bc66ca8f0ce518e2c06e Mon Sep 17 00:00:00 2001 From: Tim Ehmann <t-ehmann@gmx.de> Date: Wed, 24 Apr 2024 13:21:45 +0200 Subject: [PATCH 1/5] found this code used for GCCXML... Lets give it a try --- externals/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 87ebb63f31..a5d3df64d7 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -240,10 +240,13 @@ LCGPackage_Add( DEPENDS zlib ) #---jpeg----------------------------------------------------------------------------------------------- +if(APPLE) + set(jpeg_config_options -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++) # problems compiling with clang +endif() LCGPackage_Add( jpeg URL ${GenURL}/jpeg-${jpeg_native_version}.tar.gz - CONFIGURE_COMMAND ./configure --prefix=<INSTALL_DIR> --enable-shared + CONFIGURE_COMMAND ./configure ${jpeg_config_options} --prefix=<INSTALL_DIR> --enable-shared BUILD_COMMAND ${MAKE} LIBTOOL=libtool INSTALL_COMMAND ${CMAKE_COMMAND} -E make_directory <INSTALL_DIR>/bin <INSTALL_DIR>/man/man1 <INSTALL_DIR>/lib <INSTALL_DIR>/include COMMAND ${MAKE} install install-lib LIBTOOL=libtool -- GitLab From 5efcf72323c633ce7715f4ac28a6834a5131defe Mon Sep 17 00:00:00 2001 From: Tim Ehmann <t-ehmann@gmx.de> Date: Wed, 24 Apr 2024 13:37:51 +0200 Subject: [PATCH 2/5] changig syntax for comp setting --- externals/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index a5d3df64d7..d27c6b5e54 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -241,7 +241,7 @@ LCGPackage_Add( ) #---jpeg----------------------------------------------------------------------------------------------- if(APPLE) - set(jpeg_config_options -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++) # problems compiling with clang + set(jpeg_config_options CC=gcc CXX=g++) endif() LCGPackage_Add( jpeg -- GitLab From 0275f9cc08fe7b997d87fddd0eab1a863475e95b Mon Sep 17 00:00:00 2001 From: Tim Ehmann <t-ehmann@gmx.de> Date: Wed, 24 Apr 2024 13:53:34 +0200 Subject: [PATCH 3/5] trying different syntax via env argument --- externals/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index d27c6b5e54..ad78b4a434 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -240,9 +240,9 @@ LCGPackage_Add( DEPENDS zlib ) #---jpeg----------------------------------------------------------------------------------------------- -if(APPLE) - set(jpeg_config_options CC=gcc CXX=g++) -endif() +# if(APPLE) +# set(jpeg_config_options CC=gcc CXX=g++) +# endif() LCGPackage_Add( jpeg URL ${GenURL}/jpeg-${jpeg_native_version}.tar.gz @@ -251,7 +251,7 @@ LCGPackage_Add( INSTALL_COMMAND ${CMAKE_COMMAND} -E make_directory <INSTALL_DIR>/bin <INSTALL_DIR>/man/man1 <INSTALL_DIR>/lib <INSTALL_DIR>/include COMMAND ${MAKE} install install-lib LIBTOOL=libtool BUILD_IN_SOURCE 1 - ENVIRONMENT PATH=${libtool_home}/bin:${PATH}:\$ENV{PATH} + ENVIRONMENT CC=gcc CXX=g++ PATH=${libtool_home}/bin:${PATH}:\$ENV{PATH} DEPENDS libtool ) #---jemalloc----------------------------------------------------------------------------------------------- -- GitLab From 810ac3121adcea96e4b30f9c236a9421a821b185 Mon Sep 17 00:00:00 2001 From: Tim Ehmann <t-ehmann@gmx.de> Date: Wed, 24 Apr 2024 14:01:51 +0200 Subject: [PATCH 4/5] surpressing -Wimplicit-int --- externals/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index ad78b4a434..f0c5461547 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -251,7 +251,7 @@ LCGPackage_Add( INSTALL_COMMAND ${CMAKE_COMMAND} -E make_directory <INSTALL_DIR>/bin <INSTALL_DIR>/man/man1 <INSTALL_DIR>/lib <INSTALL_DIR>/include COMMAND ${MAKE} install install-lib LIBTOOL=libtool BUILD_IN_SOURCE 1 - ENVIRONMENT CC=gcc CXX=g++ PATH=${libtool_home}/bin:${PATH}:\$ENV{PATH} + ENVIRONMENT CC="gcc -Wno-implicit-int" CXX=g++ PATH=${libtool_home}/bin:${PATH}:\$ENV{PATH} DEPENDS libtool ) #---jemalloc----------------------------------------------------------------------------------------------- -- GitLab From b29e893f929b0968b545dae30ad6f7d0746dc370 Mon Sep 17 00:00:00 2001 From: Tim Ehmann <t-ehmann@gmx.de> Date: Wed, 24 Apr 2024 14:11:14 +0200 Subject: [PATCH 5/5] another new syntax approach --- externals/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index f0c5461547..dd7f48d8c6 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -240,18 +240,18 @@ LCGPackage_Add( DEPENDS zlib ) #---jpeg----------------------------------------------------------------------------------------------- -# if(APPLE) -# set(jpeg_config_options CC=gcc CXX=g++) -# endif() LCGPackage_Add( jpeg URL ${GenURL}/jpeg-${jpeg_native_version}.tar.gz - CONFIGURE_COMMAND ./configure ${jpeg_config_options} --prefix=<INSTALL_DIR> --enable-shared + CONFIGURE_COMMAND ./configure --prefix=<INSTALL_DIR> --enable-shared BUILD_COMMAND ${MAKE} LIBTOOL=libtool INSTALL_COMMAND ${CMAKE_COMMAND} -E make_directory <INSTALL_DIR>/bin <INSTALL_DIR>/man/man1 <INSTALL_DIR>/lib <INSTALL_DIR>/include COMMAND ${MAKE} install install-lib LIBTOOL=libtool BUILD_IN_SOURCE 1 - ENVIRONMENT CC="gcc -Wno-implicit-int" CXX=g++ PATH=${libtool_home}/bin:${PATH}:\$ENV{PATH} + ENVIRONMENT + CC=${CMAKE_C_COMPILER} + "CFLAGS=-Wno-implicit-int" + PATH=${libtool_home}/bin:${PATH}:\$ENV{PATH} DEPENDS libtool ) #---jemalloc----------------------------------------------------------------------------------------------- -- GitLab