1. 16 Jan, 2019 2 commits
    • Fred Baksik's avatar
      GHS: try_compile() now uses GHS platform variables · 436cc5e9
      Fred Baksik authored
      -- Forward GHS platform variables to try_compile()
         CMAKE_TRY_COMPILE_PLATFORM_VARIABLES only worked for source signature try_compile()
      -- Update tests to no longer add GHS platform variables to try_compile()
      -- Avoid linker error in GhsMulti/GhsMultiCompilerOptions/CMakeLists.txt by building library
      436cc5e9
    • Fred Baksik's avatar
      GHS: Append ".gpj" to target name when generating build command · 1a66acde
      Fred Baksik authored
      -- Add test demonstrating issue
      -- In the case of executable targets the target name is usually the same as used in "-o filename"
         But for static libraries the target name is usually "-o libname.a"
         "gbuild.exe target" will build whatever target matches against even the output from the compiler or linker
         But the targets in "cmake --build . --target name" should be target names in CMakeLists.txt not the actual filenames
         So change the "name" to "name.gpj" so it matches the target name in CMakeLists.txt.
      
      Fixes #15975
      1a66acde