Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 2,686
    • Issues 2,686
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 23
    • Merge Requests 23
  • Packages
    • Packages
    • Container Registry
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • CMake
  • CMakeCMake
  • Issues
  • #17553

Closed
Open
Opened Dec 11, 2017 by Volo Zyko@volo-zyko
  • Report abuse
  • New issue
Report abuse New issue

CMAKE_HOST_EXECUTABLE_SUFFIX is needed

CMAKE_EXECUTABLE_SUFFIX corresponds to executable suffix on target platform but it can be something completely different from the executable suffix in the host's environment. For example, CMAKE_EXECUTABLE_SUFFIX when building for Emscripten can be either .html or .js. Other examples, cross-compiling for Windows on Linux and vice versa.

Having single CMAKE_EXECUTABLE_SUFFIX (without CMAKE_HOST_EXECUTABLE_SUFFIX) makes it difficult to maintain consistent find_program(FOO_COMMNAD "foo${CMAKE_EXECUTABLE_SUFFIX}") for host programs.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: cmake/cmake#17553