mirror of
				https://github.com/Perlmint/glew-cmake.git
				synced 2025-11-03 22:04:16 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			7c15704efa
			...
			48549018bc
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					48549018bc | ||
| 
						 | 
					bf2473c0f4 | 
							
								
								
									
										30
									
								
								.github/workflows/cmake.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/cmake.yml
									
									
									
									
										vendored
									
									
								
							@ -115,9 +115,10 @@ jobs:
 | 
				
			|||||||
        apt install -y gcc make libgl1-mesa-dev libx11-dev libxext-dev
 | 
					        apt install -y gcc make libgl1-mesa-dev libx11-dev libxext-dev
 | 
				
			||||||
        if [ -x /opt/cmake/bin/cmake ]; then
 | 
					        if [ -x /opt/cmake/bin/cmake ]; then
 | 
				
			||||||
          echo "Found cached cmake"
 | 
					          echo "Found cached cmake"
 | 
				
			||||||
          if [ -s "$(/opt/cmake/bin/cmake --version | grep ${cmake})" ]; then
 | 
					          if [ -n "$(/opt/cmake/bin/cmake --version | grep ${cmake})" ]; then
 | 
				
			||||||
            exit 0
 | 
					            exit 0
 | 
				
			||||||
          fi
 | 
					          fi
 | 
				
			||||||
 | 
					          /opt/cmake/bin/cmake --version
 | 
				
			||||||
          echo "CMake version is mismatched"
 | 
					          echo "CMake version is mismatched"
 | 
				
			||||||
          rm -rf /opt/cmake
 | 
					          rm -rf /opt/cmake
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
@ -132,7 +133,32 @@ jobs:
 | 
				
			|||||||
        wget https://cmake.org/files/v${short_version}/cmake-${cmake}.tar.gz
 | 
					        wget https://cmake.org/files/v${short_version}/cmake-${cmake}.tar.gz
 | 
				
			||||||
        tar -xf cmake-${cmake}.tar.gz
 | 
					        tar -xf cmake-${cmake}.tar.gz
 | 
				
			||||||
        cd cmake-${cmake}
 | 
					        cd cmake-${cmake}
 | 
				
			||||||
        ./configure --prefix=/opt/cmake
 | 
					        if [ "${cmake}" == "2.8.12.2" ]; then
 | 
				
			||||||
 | 
					          apt -y install patch
 | 
				
			||||||
 | 
					          patch -p1 << 'EOF'
 | 
				
			||||||
 | 
					          --- cmake-2.8.12.2-org/CMakeLists.txt	2014-01-16 17:15:07.000000000 +0000
 | 
				
			||||||
 | 
					          +++ cmake-2.8.12.2-patch/CMakeLists.txt	2025-04-13 10:37:28.359021847 +0000
 | 
				
			||||||
 | 
					          @@ -616 +616 @@
 | 
				
			||||||
 | 
					          -add_subdirectory(Tests)
 | 
				
			||||||
 | 
					          +# add_subdirectory(Tests)
 | 
				
			||||||
 | 
					          --- cmake-2.8.12.2-org/Source/CMakeLists.txt	2014-01-16 17:15:08.000000000 +0000
 | 
				
			||||||
 | 
					          +++ cmake-2.8.12.2-patch/Source/CMakeLists.txt	2025-04-13 10:37:13.584956375 +0000
 | 
				
			||||||
 | 
					          @@ -481,2 +481,2 @@
 | 
				
			||||||
 | 
					          -add_library(CTestLib ${CTEST_SRCS})
 | 
				
			||||||
 | 
					          -target_link_libraries(CTestLib CMakeLib ${CMAKE_CURL_LIBRARIES} ${CMAKE_XMLRPC_LIBRARIES})
 | 
				
			||||||
 | 
					          +# add_library(CTestLib ${CTEST_SRCS})
 | 
				
			||||||
 | 
					          +# target_link_libraries(CTestLib CMakeLib ${CMAKE_CURL_LIBRARIES} ${CMAKE_XMLRPC_LIBRARIES})
 | 
				
			||||||
 | 
					          @@ -562,2 +562,2 @@
 | 
				
			||||||
 | 
					          -add_executable(ctest ctest.cxx)
 | 
				
			||||||
 | 
					          -target_link_libraries(ctest CTestLib)
 | 
				
			||||||
 | 
					          +# add_executable(ctest ctest.cxx)
 | 
				
			||||||
 | 
					          +# target_link_libraries(ctest CTestLib)
 | 
				
			||||||
 | 
					          @@ -583 +583 @@
 | 
				
			||||||
 | 
					          -install(TARGETS cmake ctest cpack DESTINATION bin)
 | 
				
			||||||
 | 
					          +install(TARGETS cmake cpack DESTINATION bin)
 | 
				
			||||||
 | 
					        EOF
 | 
				
			||||||
 | 
					        fi
 | 
				
			||||||
 | 
					        ./configure --prefix=/opt/cmake -- -DCMAKE_USE_OPENSSL=OFF
 | 
				
			||||||
        make -j $(nproc) install
 | 
					        make -j $(nproc) install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Save cmake
 | 
					    - name: Save cmake
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user