Skip to content

Instantly share code, notes, and snippets.

@PhobosK
Created June 13, 2015 08:06
Show Gist options
  • Save PhobosK/777dbe3bf200be99c698 to your computer and use it in GitHub Desktop.
Save PhobosK/777dbe3bf200be99c698 to your computer and use it in GitHub Desktop.
The override gentoo cmake rules file
SET (CMAKE_AR /usr/bin/x86_64-pc-linux-gnu-ar CACHE FILEPATH "Archive manager" FORCE)
SET (CMAKE_ASM_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> -march=native -O2 -pipe <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "ASM compile command" FORCE)
SET (CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> -DNDEBUG <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C compile command" FORCE)
SET (CMAKE_CXX_COMPILE_OBJECT "<CMAKE_CXX_COMPILER> <DEFINES> -DNDEBUG <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C++ compile command" FORCE)
SET (CMAKE_Fortran_COMPILE_OBJECT "<CMAKE_Fortran_COMPILER> <DEFINES> -O2 -pipe <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "Fortran compile command" FORCE)
SET (CMAKE_RANLIB /usr/bin/x86_64-pc-linux-gnu-ranlib CACHE FILEPATH "Archive index generator" FORCE)
SET (PKG_CONFIG_EXECUTABLE /usr/bin/x86_64-pc-linux-gnu-pkg-config CACHE FILEPATH "pkg-config executable" FORCE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment