Skip to content

Commit a55da98

Browse files
authored
fix: drop manylinux1 workaround (#682)
* fix: drop manylinux1 workaround Removed initial cache file generation for CMAKE_C_FLAGS and CMAKE_EXE_LINKER_FLAGS. * Remove unused _cmake_args from CMakeLists Removed unused variable from CMake configuration.
1 parent 8ea4527 commit a55da98

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -274,19 +274,6 @@ if(CMakePythonDistributions_SUPERBUILD)
274274
message(STATUS "SuperBuild - CMakeProject-build - CMAKE_CXX_STANDARD: ${CMAKE_CXX_STANDARD}")
275275
endif()
276276

277-
set(_cmake_args )
278-
if(UNIX AND (NOT APPLE AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD"))
279-
# Since CMAKE_C_FLAGS and CMAKE_EXE_LINKER_FLAGS arguments contain spaces, we generate an initial
280-
# cache file.
281-
file(WRITE "${CMAKE_BINARY_DIR}/initial-cache.txt"
282-
"set(CMAKE_C_FLAGS \"-D_POSIX_C_SOURCE=199506L -D_POSIX_SOURCE=1 -D_SVID_SOURCE=1 -D_BSD_SOURCE=1\" CACHE STRING \"Initial cache\" FORCE)
283-
set(CMAKE_EXE_LINKER_FLAGS \"-lstdc++ -lgcc -lrt\" CACHE STRING \"Initial cache\" FORCE)
284-
")
285-
set(_cmake_args
286-
CMAKE_ARGS -C "${CMAKE_BINARY_DIR}/initial-cache.txt"
287-
)
288-
endif()
289-
290277
# cmake
291278
set(CMakeProject_BINARY_DIR ${CMAKE_BINARY_DIR}/CMakeProject-build)
292279

@@ -296,7 +283,6 @@ set(CMAKE_EXE_LINKER_FLAGS \"-lstdc++ -lgcc -lrt\" CACHE STRING \"Initial cache\
296283
DOWNLOAD_COMMAND ""
297284
UPDATE_COMMAND ""
298285
BUILD_ALWAYS 1
299-
${_cmake_args}
300286
CMAKE_CACHE_ARGS
301287
-DBUILD_CursesDialog:BOOL=ON
302288
-DCMAKE_USE_OPENSSL:BOOL=ON

0 commit comments

Comments
 (0)